!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(a){var e,t,n,i;function r(e,t){var n,i,r=e.nodeName.toLowerCase();return"area"===r?(i=(n=e.parentNode).name,!(!e.href||!i||"map"!==n.nodeName.toLowerCase())&&(!!(i=a("img[usemap='#"+i+"']")[0])&&o(i))):(/^(input|select|textarea|button|object)$/.test(r)?!e.disabled:"a"===r&&e.href||t)&&o(e)}function o(e){return a.expr.filters.visible(e)&&!a(e).parents().addBack().filter(function(){return"hidden"===a.css(this,"visibility")}).length}a.ui=a.ui||{},a.extend(a.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),a.fn.extend({scrollParent:function(e){var t=this.css("position"),n="absolute"===t,i=e?/(auto|scroll|hidden)/:/(auto|scroll)/,e=this.parents().filter(function(){var e=a(this);return(!n||"static"!==e.css("position"))&&i.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&e.length?e:a(this[0].ownerDocument||document)},uniqueId:(e=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++e)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&a(this).removeAttr("id")})}}),a.extend(a.expr[":"],{data:a.expr.createPseudo?a.expr.createPseudo(function(t){return function(e){return!!a.data(e,t)}}):function(e,t,n){return!!a.data(e,n[3])},focusable:function(e){return r(e,!isNaN(a.attr(e,"tabindex")))},tabbable:function(e){var t=a.attr(e,"tabindex"),n=isNaN(t);return(n||0<=t)&&r(e,!n)}}),a("").outerWidth(1).jquery||a.each(["Width","Height"],function(e,n){var r="Width"===n?["Left","Right"]:["Top","Bottom"],i=n.toLowerCase(),o={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};function s(e,t,n,i){return a.each(r,function(){t-=parseFloat(a.css(e,"padding"+this))||0,n&&(t-=parseFloat(a.css(e,"border"+this+"Width"))||0),i&&(t-=parseFloat(a.css(e,"margin"+this))||0)}),t}a.fn["inner"+n]=function(e){return void 0===e?o["inner"+n].call(this):this.each(function(){a(this).css(i,s(this,e)+"px")})},a.fn["outer"+n]=function(e,t){return"number"!=typeof e?o["outer"+n].call(this,e):this.each(function(){a(this).css(i,s(this,e,!0,t)+"px")})}}),a.fn.addBack||(a.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),a("").data("a-b","a").removeData("a-b").data("a-b")&&(a.fn.removeData=(t=a.fn.removeData,function(e){return arguments.length?t.call(this,a.camelCase(e)):t.call(this)})),a.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),a.fn.extend({focus:(i=a.fn.focus,function(t,n){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){a(e).focus(),n&&n.call(e)},t)}):i.apply(this,arguments)}),disableSelection:(n="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(n+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,n,i=a(this[0]);i.length&&i[0]!==document;){if(t=i.css("position"),("absolute"===t||"relative"===t||"fixed"===t)&&(n=parseInt(i.css("zIndex"),10),!isNaN(n)&&0!==n))return n;i=i.parent()}return 0}}),a.ui.plugin={add:function(e,t,n){var i,r=a.ui[e].prototype;for(i in n)r.plugins[i]=r.plugins[i]||[],r.plugins[i].push([t,n[i]])},call:function(e,t,n,i){var r,o=e.plugins[t];if(o&&(i||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(r=0;r",options:{disabled:!1,create:null},_createWidget:function(t,e){e=d(e||this.defaultElement||this)[0],this.element=d(e),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=d(),this.hoverable=d(),this.focusable=d(),e!==this&&(d.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=d(e.style?e.ownerDocument:e.document||e),this.window=d(this.document[0].defaultView||this.document[0].parentWindow)),this.options=d.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:d.noop,_getCreateEventData:d.noop,_create:d.noop,_init:d.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(d.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:d.noop,widget:function(){return this.element},option:function(t,e){var i,n,s,o=t;if(0===arguments.length)return d.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(n=o[t]=d.widget.extend({},this.options[t]),s=0;s?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,e=this.tablist.children(":has(a[href])");t.disabled=l.map(e.filter(".ui-state-disabled"),function(t){return e.index(t)}),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!l.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=l()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=l()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var o=this,t=this.tabs,e=this.anchors,i=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(t){l(this).is(".ui-state-disabled")&&t.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){l(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return l("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=l(),this.anchors.each(function(t,e){var i,a,s,n=l(e).uniqueId().attr("id"),r=l(e).closest("li"),h=r.attr("aria-controls");o._isLocal(e)?(s=(i=e.hash).substring(1),a=o.element.find(o._sanitizeSelector(i))):(i="#"+(s=r.attr("aria-controls")||l({}).uniqueId()[0].id),(a=o.element.find(i)).length||(a=o._createPanel(s)).insertAfter(o.panels[t-1]||o.tablist),a.attr("aria-live","polite")),a.length&&(o.panels=o.panels.add(a)),h&&r.data("ui-tabs-aria-controls",h),r.attr({"aria-controls":s,"aria-labelledby":n}),a.attr("aria-labelledby",n)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),t&&(this._off(t.not(this.tabs)),this._off(e.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(t){return l("
").attr("id",t).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(t){l.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1);for(var e,i=0;e=this.tabs[i];i++)!0===t||-1!==l.inArray(i,t)?l(e).addClass("ui-state-disabled").attr("aria-disabled","true"):l(e).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=t},_setupEvents:function(t){var i={};t&&l.each(t.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,e=this.element.parent();"fill"===t?(i=e.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var t=l(this),e=t.css("position");"absolute"!==e&&"fixed"!==e&&(i-=t.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=l(this).outerHeight(!0)}),this.panels.each(function(){l(this).height(Math.max(0,i-l(this).innerHeight()+l(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each(function(){i=Math.max(i,l(this).height("").height())}).height(i))},_eventHandler:function(t){var e=this.options,i=this.active,a=l(t.currentTarget).closest("li"),s=a[0]===i[0],n=s&&e.collapsible,r=n?l():this._getPanelForTab(a),h=i.length?this._getPanelForTab(i):l(),i={oldTab:i,oldPanel:h,newTab:n?l():a,newPanel:r};t.preventDefault(),a.hasClass("ui-state-disabled")||a.hasClass("ui-tabs-loading")||this.running||s&&!e.collapsible||!1===this._trigger("beforeActivate",t,i)||(e.active=!n&&this.tabs.index(a),this.active=s?l():a,this.xhr&&this.xhr.abort(),h.length||r.length||l.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(a),t),this._toggle(t,i))},_toggle:function(t,e){var i=this,a=e.newPanel,s=e.oldPanel;function n(){i.running=!1,i._trigger("activate",t,e)}function r(){e.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),a.length&&i.options.show?i._show(a,i.options.show,n):(a.show(),n())}this.running=!0,s.length&&this.options.hide?this._hide(s,this.options.hide,function(){e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),r()}):(e.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),s.hide(),r()),s.attr("aria-hidden","true"),e.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&s.length?e.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===l(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),e.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var t=this._findActive(t);t[0]!==this.active[0]&&(t=(t=!t.length?this.active:t).find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:l.noop}))},_findActive:function(t){return!1===t?l():this.tabs.eq(t)},_getIndex:function(t){return t="string"==typeof t?this.anchors.index(this.anchors.filter("[href$='"+t+"']")):t},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){l.data(this,"ui-tabs-destroy")?l(this).remove():l(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var t=l(this),e=t.data("ui-tabs-aria-controls");e?t.attr("aria-controls",e).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var t=this.options.disabled;!1!==t&&(t=void 0!==i&&(i=this._getIndex(i),l.isArray(t)?l.map(t,function(t){return t!==i?t:null}):l.map(this.tabs,function(t,e){return e!==i?e:null})),this._setupDisabled(t))},disable:function(t){var e=this.options.disabled;if(!0!==e){if(void 0===t)e=!0;else{if(t=this._getIndex(t),-1!==l.inArray(t,e))return;e=l.isArray(e)?l.merge([t],e).sort():[t]}this._setupDisabled(e)}},load:function(t,a){t=this._getIndex(t);function s(t,e){"abort"===e&&n.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr}var n=this,i=this.tabs.eq(t),t=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),h={tab:i,panel:r};this._isLocal(t[0])||(this.xhr=l.ajax(this._ajaxSettings(t,a,h)),this.xhr&&"canceled"!==this.xhr.statusText&&(i.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(t,e,i){setTimeout(function(){r.html(t),n._trigger("load",a,h),s(i,e)},1)}).fail(function(t,e){setTimeout(function(){s(t,e)},1)})))},_ajaxSettings:function(t,i,a){var s=this;return{url:t.attr("href"),beforeSend:function(t,e){return s._trigger("beforeLoad",i,l.extend({jqXHR:t,ajaxSettings:e},a))}}},_getPanelForTab:function(t){t=l(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}});var a}); (function(e,t,n){"use strict";function r(n){if(i=t.documentElement,s=t.body,H(),V=this,n=n||{},Q=n.constants||{},n.easing)for(var r in n.easing)B[r]=n.easing[r];if(J={beforerender:n.beforerender,render:n.render},K=n.forceHeight!==!1,Y=n.smoothScrolling!==!1,Z={targetTop:V.getScrollTop()},K&&(lt=n.scale||1),it(i,[c],[h]),K){var u=t.getElementById("skrollr-body")||t.createElement("div"),a=u.style;a.minWidth="1px",a.position="absolute",a.top=a.zIndex="0",u.id||(a.width="1px",a.right="0",s.appendChild(u)),function(e){tt=function(){e.apply(this,arguments),a.height=ft+i.clientHeight+"px"}}(tt)}return V.refresh(),o.addEvent(e,"resize",tt),function f(){S(f),I()}(),V}var i,s,o=e.skrollr={get:function(){return V},init:function(e){return V||new r(e)},VERSION:"0.5.14"},u=Object.prototype.hasOwnProperty,a="rendered",f="un"+a,l="skrollable",c="skrollr",h="no-"+c,p="linear",d=1e3,v=50,m="start",g="end",y="center",b="bottom",w="___has_rendered_class",E="___skrollable_id",S=e.requestAnimationFrame;(function(){var t,n=["ms","moz","webkit","o"];for(t=0;n.length>t&&!S;t++)S=e[n[t]+"RequestAnimationFrame"];var r=0;S||(S=function(t){var n=ut(),i=Math.max(0,30-(n-r));e.setTimeout(function(){t(n+i)},i),r=n+i})})();var x,T,N=/^\s+|\s+$/g,C=/^data(?:-(_\w+))?(?:-?(-?\d+))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,k=/\s*([a-z\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,L=/^([a-z\-]+)\[(\w+)\]$/,A=/-([a-z])/g,O=function(e,t){return t.toUpperCase()},M=/[\-+]?[\d]*\.?[\d]+/g,_=/\{\?\}/g,D=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,P=/[a-z\-]+-gradient/g,H=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(e.getComputedStyle){var n=e.getComputedStyle(s,null);for(var r in n)if(x=r.match(t)||+r==r&&n[r].match(t))break;x&&(x=x[0],"-"===x.slice(0,1)?(T=x,x={"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"}[x]):T="-"+x.toLowerCase()+"-")}},B={begin:function(){return 0},end:function(){return 1},linear:function(e){return e},quadratic:function(e){return e*e},cubic:function(e){return e*e*e},swing:function(e){return-Math.cos(e*Math.PI)/2+.5},sqrt:function(e){return Math.sqrt(e)},bounce:function(e){var t;if(.5083>=e)t=3;else if(.8489>=e)t=9;else if(.96208>=e)t=27;else{if(!(.99981>=e))return 1;t=91}return 1-Math.abs(3*Math.cos(1.028*e*t)/t)}};r.prototype.refresh=function(e){var r,i=!1;for(e===n?(i=!0,$=[],dt=0,e=t.getElementsByTagName("*")):e=[].concat(e),r=0;e.length>r;r++){var s=e[r],o=s,u=[],c=Y;if(s.attributes){for(var h=0;s.attributes.length>h;h++){var p=s.attributes[h];if("data-anchor-target"!==p.name)if("data-smooth-scrolling"!==p.name){var d=p.name.match(C);if(null!==d){var v=d[1];v=v&&Q[v.substr(1)]||0;var y=(0|d[2])+v,b=d[3],S=d[4]||b,x={offset:y,props:p.value,element:s};u.push(x),b&&b!==m&&b!==g?(x.mode="relative",x.anchors=[b,S]):(x.mode="absolute",b===g?x.isEnd=!0:(x.frame=y*lt,delete x.offset))}}else c="off"!==p.value;else if(o=t.querySelector(p.value),null===o)throw'Unable to find anchor target "'+p.value+'"'}if(u.length){var T,N,k;!i&&E in s?(k=s[E],T=$[k].styleAttr,N=$[k].classAttr):(k=s[E]=dt++,T=s.style.cssText,N=rt(s));var L=$[k]={element:s,styleAttr:T,classAttr:N,anchorTarget:o,keyFrames:u,smoothScrolling:c};it(s,[l,a],[f]),L[w]=!0}}}for(tt(),r=0;e.length>r;r++){var A=$[e[r][E]];A!==n&&(A.keyFrames.sort(at),q(A),U(A))}return V},r.prototype.relativeToAbsolute=function(e,t,n){var r=i.clientHeight,s=e.getBoundingClientRect(),o=s.top,u=s.bottom-s.top;return t===b?o-=r:t===y&&(o-=r/2),n===b?o+=u:n===y&&(o+=u/2),o+=V.getScrollTop(),0|o+.5},r.prototype.animateTo=function(e,t){t=t||{};var r=ut(),i=V.getScrollTop();return G={startTop:i,topDiff:e-i,targetTop:e,duration:t.duration||d,startTime:r,endTime:r+(t.duration||d),easing:B[t.easing||p],done:t.done},G.topDiff||(G.done&&G.done.call(V,!1),G=n),V},r.prototype.stopAnimateTo=function(){G&&G.done&&G.done.call(V,!0),G=n},r.prototype.isAnimatingTo=function(){return!!G},r.prototype.setScrollTop=function(t,n){return n===!0&&(ht=t,et=!0),o.iscroll?o.iscroll.scrollTo(0,-t):e.scrollTo(0,t),V},r.prototype.getScrollTop=function(){return o.iscroll?-o.iscroll.y:e.pageYOffset||i.scrollTop||s.scrollTop||0},r.prototype.on=function(e,t){return J[e]=t,V},r.prototype.off=function(e){return delete J[e],V};var j=function(){var e,t,n,r,i,s,o,u,a;for(s=0;$.length>s;s++)for(e=$[s],t=e.element,n=e.anchorTarget,r=e.keyFrames,o=0;r.length>o;o++)i=r[o],"relative"===i.mode&&(u=t.style.cssText,a=rt(t),t.style.cssText=e.styleAttr,it(t,e.classAttr),i.frame=V.relativeToAbsolute(n,i.anchors[0],i.anchors[1])-i.offset,t.style.cssText=u,it(t,a)),K&&!i.isEnd&&i.frame>ft&&(ft=i.frame);for(ft=Math.max(ft,nt()),s=0;$.length>s;s++)for(e=$[s],r=e.keyFrames,o=0;r.length>o;o++)i=r[o],i.isEnd&&(i.frame=ft-i.offset)},F=function(e,t){for(var n=0;$.length>n;n++){var r,i,s=$[n],l=s.smoothScrolling?e:t,c=s.keyFrames,h=c[0].frame,p=c[c.length-1].frame,d=h>=l,v=l>=p;if(d||v){var m=c[d?0:c.length-1].props;for(r in m)u.call(m,r)&&(i=X(m[r].value),o.setStyle(s.element,r,i));s[w]&&(h>l||l>p)&&(it(s.element,[f],[a]),s[w]=!1)}else{s[w]||(it(s.element,[a],[f]),s[w]=!0);for(var g=0;c.length-1>g;g++)if(l>=c[g].frame&&c[g+1].frame>=l){var y=c[g],b=c[g+1];for(r in y.props)if(u.call(y.props,r)){var E=(l-y.frame)/(b.frame-y.frame);E=y.props[r].easing(E),i=W(y.props[r].value,b.props[r].value,E),i=X(i),o.setStyle(s.element,r,i)}break}}}},I=function(){var e,t,r=V.getScrollTop(),i=ut();if(G)i>=G.endTime?(r=G.targetTop,e=G.done,G=n):(t=G.easing((i-G.startTime)/G.duration),r=0|G.startTop+t*G.topDiff),V.setScrollTop(r);else{var s=Z.targetTop-r;s&&(Z={startTop:ht,topDiff:r-ht,targetTop:r,startTime:pt,endTime:pt+v}),Z.endTime>=i&&(t=B.sqrt((i-Z.startTime)/v),r=0|Z.startTop+t*Z.topDiff)}if(0>r&&(r=0),et||ht!==r){ct=r>=ht?"down":"up",et=!1;var o={curTop:r,lastTop:ht,maxTop:ft,direction:ct},u=J.beforerender&&J.beforerender.call(V,o);u!==!1&&(F(r,V.getScrollTop()),ht=r,J.render&&J.render.call(V,o)),e&&e.call(V,!1)}pt=i},q=function(e){for(var t=0;e.keyFrames.length>t;t++){for(var n,r,i,s,o=e.keyFrames[t],u={};null!==(s=k.exec(o.props));)i=s[1],r=s[2],n=i.match(L),null!==n?(i=n[1],n=n[2]):n=p,r=r.indexOf("!")?R(r):[r.slice(1)],u[i]={value:r,easing:B[n]};o.props=u}},R=function(e){var t=[];return D.lastIndex=0,e=e.replace(D,function(e){return e.replace(M,function(e){return 100*(e/255)+"%"})}),T&&(P.lastIndex=0,e=e.replace(P,function(e){return T+e})),e=e.replace(M,function(e){return t.push(+e),"{?}"}),t.unshift(e),t},U=function(e){var t,n={};for(t=0;e.keyFrames.length>t;t++)z(e.keyFrames[t],n);for(n={},t=e.keyFrames.length-1;t>=0;t--)z(e.keyFrames[t],n)},z=function(e,t){var n;for(n in t)u.call(e.props,n)||(e.props[n]=t[n]);for(n in e.props)t[n]=e.props[n]},W=function(e,t,n){if(e.length!==t.length)throw"Can't interpolate between \""+e[0]+'" and "'+t[0]+'"';for(var r=[e[0]],i=1;e.length>i;i++)r[i]=e[i]+(t[i]-e[i])*n;return r},X=function(e){var t=1;return _.lastIndex=0,e[0].replace(_,function(){return e[t++]})};o.setStyle=function(e,t,n){var r=e.style;if(t=t.replace(A,O).replace("-",""),"zIndex"===t)r[t]=""+(0|n);else if("float"===t)r.styleFloat=r.cssFloat=n;else try{x&&(r[x+t.slice(0,1).toUpperCase()+t.slice(1)]=n),r[t]=n}catch(i){}},o.addEvent=function(t,n,r){var i=function(t){return t=t||e.event,t.target||(t.target=t.srcElement),t.preventDefault||(t.preventDefault=function(){t.returnValue=!1}),r.call(this,t)};e.addEventListener?t.addEventListener(n,i,!1):t.attachEvent("on"+n,i)};var V,$,J,K,Q,G,Y,Z,et,tt=function(){ft=0,j(),et=!0,o.iscroll&&e.setTimeout(function(){o.iscroll.refresh()},0)},nt=function(){var e=Math.max(s.scrollHeight,s.offsetHeight,i.scrollHeight,i.offsetHeight,i.clientHeight);return e-i.clientHeight},rt=function(t){var n="className";return e.SVGElement&&t instanceof e.SVGElement&&(t=t[n],n="baseVal"),t[n]},it=function(t,r,i){var s="className";if(e.SVGElement&&t instanceof e.SVGElement&&(t=t[s],s="baseVal"),i===n)return t[s]=r,n;for(var o=t[s],u=0;r.length>u;u++)-1===ot(o).indexOf(ot(r[u]))&&(o+=" "+r[u]);for(var a=0;i.length>a;a++)o=ot(o).replace(ot(i[a])," ");t[s]=st(o)},st=function(e){return e.replace(N,"")},ot=function(e){return" "+e+" "},ut=Date.now||function(){return+(new Date)},at=function(e,t){return e.frame-t.frame},ft=0,lt=1,ct="down",ht=-1,pt=ut(),dt=0})(window,document); (function(jQuery){ var domfocus=false; var mousefocus=false; var zoomactive=false; var tabindexcounter=5000; var ascrailcounter=2000; var globalmaxzindex=0; var $=jQuery; function getScriptPath(){ var scripts=document.getElementsByTagName('script'); var path=scripts[scripts.length-1].src.split('?')[0]; return (path.split('/').length>0) ? path.split('/').slice(0,-1).join('/')+'/':''; } var scriptpath=getScriptPath(); var vendors=['ms','moz','webkit','o']; var setAnimationFrame=window.requestAnimationFrame||false; var clearAnimationFrame=window.cancelAnimationFrame||false; if(!setAnimationFrame){ for(var vx in vendors){ var v=vendors[vx]; if(!setAnimationFrame) setAnimationFrame=window[v+'RequestAnimationFrame']; if(!clearAnimationFrame) clearAnimationFrame=window[v+'CancelAnimationFrame']||window[v+'CancelRequestAnimationFrame']; }} var clsMutationObserver=window.MutationObserver||window.WebKitMutationObserver||false; var _globaloptions={ zindex:"auto", cursoropacitymin:0, cursoropacitymax:1, cursorcolor:"#424242", cursorwidth:"5px", cursorborder:"1px solid #fff", cursorborderradius:"5px", scrollspeed:60, mousescrollstep:8*3, touchbehavior:false, hwacceleration:true, usetransition:true, boxzoom:false, dblclickzoom:true, gesturezoom:true, grabcursorenabled:true, autohidemode:true, background:"", iframeautoresize:true, cursorminheight:32, preservenativescrolling:true, railoffset:false, bouncescroll:true, spacebarenabled:true, railpadding:{top:0,right:0,left:0,bottom:0}, disableoutline:true, horizrailenabled:true, railalign:"right", railvalign:"bottom", enabletranslate3d:true, enablemousewheel:true, enablekeyboard:true, smoothscroll:true, sensitiverail:true, enablemouselockapi:true, cursorfixedheight:false, directionlockdeadzone:6, hidecursordelay:400, nativeparentscrolling:true, enablescrollonselection:true, overflowx:true, overflowy:true, cursordragspeed:0.3, rtlmode:false, cursordragontouch:false, oneaxismousemode:"auto" } var browserdetected=false; var getBrowserDetection=function(){ if(browserdetected) return browserdetected; var domtest=document.createElement('DIV'); var d={}; d.haspointerlock="pointerLockElement" in document||"mozPointerLockElement" in document||"webkitPointerLockElement" in document; d.isopera=("opera" in window); d.isopera12=(d.isopera&&("getUserMedia" in navigator)); d.isoperamini=(Object.prototype.toString.call(window.operamini)==="[object OperaMini]"); d.isie=(("all" in document)&&("attachEvent" in domtest)&&!d.isopera); d.isieold=(d.isie&&!("msInterpolationMode" in domtest.style)); d.isie7=d.isie&&!d.isieold&&(!("documentMode" in document)||(document.documentMode==7)); d.isie8=d.isie&&("documentMode" in document)&&(document.documentMode==8); d.isie9=d.isie&&("performance" in window)&&(document.documentMode>=9); d.isie10=d.isie&&("performance" in window)&&(document.documentMode>=10); d.isie9mobile=/iemobile.9/i.test(navigator.userAgent); if(d.isie9mobile) d.isie9=false; d.isie7mobile=(!d.isie9mobile&&d.isie7)&&/iemobile/i.test(navigator.userAgent); d.ismozilla=("MozAppearance" in domtest.style); d.iswebkit=("WebkitAppearance" in domtest.style); d.ischrome=("chrome" in window); d.ischrome22=(d.ischrome&&d.haspointerlock); d.ischrome26=(d.ischrome&&("transition" in domtest.style)); d.cantouch=("ontouchstart" in document.documentElement)||("ontouchstart" in window); d.hasmstouch=(window.navigator.msPointerEnabled||false); d.ismac=/^mac$/i.test(navigator.platform); d.isios=(d.cantouch&&/iphone|ipad|ipod/i.test(navigator.platform)); d.isios4=((d.isios)&&!("seal" in Object)); d.isandroid=(/android/i.test(navigator.userAgent)); d.trstyle=false; d.hastransform=false; d.hastranslate3d=false; d.transitionstyle=false; d.hastransition=false; d.transitionend=false; var check=['transform','msTransform','webkitTransform','MozTransform','OTransform']; for(var a=0;anw&&!dd.tt){ self.delaylist[name]={ last:nw+tm, tt:setTimeout(function(){self.delaylist[name].tt=0;fn.call();},tm) }} else if(!dd||!dd.tt){ self.delaylist[name]={ last:nw, tt:0 } setTimeout(function(){fn.call();},0); }}; this.debounced=function(name,fn,tm){ var dd=self.delaylist[name]; var nw=(new Date()).getTime(); self.delaylist[name]=fn; if(!dd){ setTimeout(function(){var fn=self.delaylist[name];self.delaylist[name]=false;fn.call();},tm); }} this.synched=function(name,fn){ function requestSync(){ if(self.onsync) return; setAnimationFrame(function(){ self.onsync=false; for(name in self.synclist){ var fn=self.synclist[name]; if(fn) fn.call(self); self.synclist[name]=false; }}); self.onsync=true; }; self.synclist[name]=fn; requestSync(); return name; }; this.unsynched=function(name){ if(self.synclist[name]) self.synclist[name]=false; } this.css=function(el,pars){ for(var n in pars){ self.saved.css.push([el,n,el.css(n)]); el.css(n,pars[n]); }}; this.scrollTop=function(val){ return (typeof val=="undefined") ? self.getScrollTop():self.setScrollTop(val); }; this.scrollLeft=function(val){ return (typeof val=="undefined") ? self.getScrollLeft():self.setScrollLeft(val); }; BezierClass=function(st,ed,spd,p1,p2,p3,p4){ this.st=st; this.ed=ed; this.spd=spd; this.p1=p1||0; this.p2=p2||1; this.p3=p3||0; this.p4=p4||1; this.ts=(new Date()).getTime(); this.df=this.ed-this.st; }; BezierClass.prototype={ B2:function(t){ return 3*t*t*(1-t) }, B3:function(t){ return 3*t*(1-t)*(1-t) }, B4:function(t){ return (1-t)*(1-t)*(1-t) }, getNow:function(){ var nw=(new Date()).getTime(); var pc=1-((nw-this.ts)/this.spd); var bz=this.B2(pc) + this.B3(pc) + this.B4(pc); return (pc<0) ? this.ed:this.st+Math.round(this.df*bz); }, update:function(ed,spd){ this.st=this.getNow(); this.ed=ed; this.spd=spd; this.ts=(new Date()).getTime(); this.df=this.ed-this.st; return this; }}; if(this.ishwscroll){ this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"}; if(cap.hastranslate3d&&cap.isios) this.doc.css("-webkit-backface-visibility","hidden"); function getMatrixValues(){ var tr=self.doc.css(cap.trstyle); if(tr&&(tr.substr(0,6)=="matrix")){ return tr.replace(/^.*\((.*)\)$/g, "$1").replace(/px/g,'').split(/, +/); } return false; } this.getScrollTop=function(last){ if(!last){ var mtx=getMatrixValues(); if(mtx) return (mtx.length==16) ? -mtx[13]:-mtx[5]; if(self.timerscroll&&self.timerscroll.bz) return self.timerscroll.bz.getNow(); } return self.doc.translate.y; }; this.getScrollLeft=function(last){ if(!last){ var mtx=getMatrixValues(); if(mtx) return (mtx.length==16) ? -mtx[12]:-mtx[4]; if(self.timerscroll&&self.timerscroll.bh) return self.timerscroll.bh.getNow(); } return self.doc.translate.x; }; if(document.createEvent){ this.notifyScrollEvent=function(el){ var e=document.createEvent("UIEvents"); e.initUIEvent("scroll", false, true, window, 1); el.dispatchEvent(e); };} else if(document.fireEvent){ this.notifyScrollEvent=function(el){ var e=document.createEventObject(); el.fireEvent("onscroll"); e.cancelBubble=true; };}else{ this.notifyScrollEvent=function(el,add){};} if(cap.hastranslate3d&&self.opt.enabletranslate3d){ this.setScrollTop=function(val,silent){ self.doc.translate.y=val; self.doc.translate.ty=(val*-1)+"px"; self.doc.css(cap.trstyle,"translate3d("+self.doc.translate.tx+","+self.doc.translate.ty+",0px)"); if(!silent) self.notifyScrollEvent(self.win[0]); }; this.setScrollLeft=function(val,silent){ self.doc.translate.x=val; self.doc.translate.tx=(val*-1)+"px"; self.doc.css(cap.trstyle,"translate3d("+self.doc.translate.tx+","+self.doc.translate.ty+",0px)"); if(!silent) self.notifyScrollEvent(self.win[0]); };}else{ this.setScrollTop=function(val,silent){ self.doc.translate.y=val; self.doc.translate.ty=(val*-1)+"px"; self.doc.css(cap.trstyle,"translate("+self.doc.translate.tx+","+self.doc.translate.ty+")"); if(!silent) self.notifyScrollEvent(self.win[0]); }; this.setScrollLeft=function(val,silent){ self.doc.translate.x=val; self.doc.translate.tx=(val*-1)+"px"; self.doc.css(cap.trstyle,"translate("+self.doc.translate.tx+","+self.doc.translate.ty+")"); if(!silent) self.notifyScrollEvent(self.win[0]); };}}else{ this.getScrollTop=function(){ return self.docscroll.scrollTop(); }; this.setScrollTop=function(val){ return self.docscroll.scrollTop(val); }; this.getScrollLeft=function(){ return self.docscroll.scrollLeft(); }; this.setScrollLeft=function(val){ return self.docscroll.scrollLeft(val); };} this.getTarget=function(e){ if(!e) return false; if(e.target) return e.target; if(e.srcElement) return e.srcElement; return false; }; this.hasParent=function(e,id){ if(!e) return false; var el=e.target||e.srcElement||e||false; while (el&&el.id!=id){ el=el.parentNode||false; } return (el!==false); }; function getZIndex(){ var dom=self.win; if("zIndex" in dom) return dom.zIndex(); while (dom.length>0){ if(dom[0].nodeType==9) return false; var zi=dom.css('zIndex'); if(!isNaN(zi)&&zi!=0) return parseInt(zi); dom=dom.parent(); } return false; }; var _convertBorderWidth={"thin":1,"medium":3,"thick":5}; function getWidthToPixel(dom,prop,chkheight){ var wd=dom.css(prop); var px=parseFloat(wd); if(isNaN(px)){ px=_convertBorderWidth[wd]||0; var brd=(px==3) ? ((chkheight)?(self.win.outerHeight() - self.win.innerHeight()):(self.win.outerWidth() - self.win.innerWidth())):1; if(self.isie8&&px) px+=1; return (brd) ? px:0; } return px; }; this.getOffset=function(){ if(self.isfixed) return {top:parseFloat(self.win.css('top')),left:parseFloat(self.win.css('left'))}; if(!self.viewport) return self.win.offset(); var ww=self.win.offset(); var vp=self.viewport.offset(); return {top:ww.top-vp.top+self.viewport.scrollTop(),left:ww.left-vp.left+self.viewport.scrollLeft()};}; this.updateScrollBar=function(len){ if(self.ishwscroll){ self.rail.css({height:self.win.innerHeight()}); if(self.railh) self.railh.css({width:self.win.innerWidth()}); }else{ var wpos=self.getOffset(); var pos={top:wpos.top,left:wpos.left}; pos.top+=getWidthToPixel(self.win,'border-top-width',true); var brd=(self.win.outerWidth() - self.win.innerWidth())/2; pos.left+=(self.rail.align) ? self.win.outerWidth() - getWidthToPixel(self.win,'border-right-width') - self.rail.width:getWidthToPixel(self.win,'border-left-width'); var off=self.opt.railoffset; if(off){ if(off.top) pos.top+=off.top; if(self.rail.align&&off.left) pos.left+=off.left; } if(!self.locked) self.rail.css({top:pos.top,left:pos.left,height:(len)?len.h:self.win.innerHeight()}); if(self.zoom){ self.zoom.css({top:pos.top+1,left:(self.rail.align==1) ? pos.left-20:pos.left+self.rail.width+4}); } if(self.railh&&!self.locked){ var pos={top:wpos.top,left:wpos.left}; var y=(self.railh.align) ? pos.top + getWidthToPixel(self.win,'border-top-width',true) + self.win.innerHeight() - self.railh.height:pos.top + getWidthToPixel(self.win,'border-top-width',true); var x=pos.left + getWidthToPixel(self.win,'border-left-width'); self.railh.css({top:y,left:x,width:self.railh.width}); }} }; this.doRailClick=function(e,dbl,hr){ var fn,pg,cur,pos; if(self.locked) return; self.cancelEvent(e); if(dbl){ fn=(hr) ? self.doScrollLeft:self.doScrollTop; cur=(hr) ? ((e.pageX - self.railh.offset().left - (self.cursorwidth/2)) * self.scrollratio.x):((e.pageY - self.rail.offset().top - (self.cursorheight/2)) * self.scrollratio.y); fn(cur); }else{ fn=(hr) ? self.doScrollLeftBy:self.doScrollBy; cur=(hr) ? self.scroll.x:self.scroll.y; pos=(hr) ? e.pageX - self.railh.offset().left:e.pageY - self.rail.offset().top; pg=(hr) ? self.view.w:self.view.h; (cur>=pos) ? fn(pg):fn(-pg); }} self.hasanimationframe=(setAnimationFrame); self.hascancelanimationframe=(clearAnimationFrame); if(!self.hasanimationframe){ setAnimationFrame=function(fn){return setTimeout(fn,15-Math.floor((+new Date)/1000)%16)}; clearAnimationFrame=clearInterval; } else if(!self.hascancelanimationframe) clearAnimationFrame=function(){self.cancelAnimationFrame=true}; this.init=function(){ self.saved.css=[]; if(cap.isie7mobile) return true; if(cap.isoperamini) return true; if(cap.hasmstouch) self.css((self.ispage)?$("html"):self.win,{'-ms-touch-action':'none'}); self.zindex="auto"; if(!self.ispage&&self.opt.zindex=="auto"){ self.zindex=getZIndex()||"auto"; }else{ self.zindex=self.opt.zindex; } if(!self.ispage&&self.zindex!="auto"){ if(self.zindex>globalmaxzindex) globalmaxzindex=self.zindex; } if(self.isie&&self.zindex==0&&self.opt.zindex=="auto"){ self.zindex="auto"; } if(!self.ispage||(!cap.cantouch&&!cap.isieold&&!cap.isie9mobile)){ var cont=self.docscroll; if(self.ispage) cont=(self.haswrapper)?self.win:self.doc; if(!cap.isie9mobile) self.css(cont,{'overflow-y':'hidden'}); if(self.ispage&&cap.isie7){ if(self.doc[0].nodeName=='BODY') self.css($("html"),{'overflow-y':'hidden'}); else if(self.doc[0].nodeName=='HTML') self.css($("body"),{'overflow-y':'hidden'}); } if(cap.isios&&!self.ispage&&!self.haswrapper) self.css($("body"),{"-webkit-overflow-scrolling":"touch"}); var cursor=$(document.createElement('div')); cursor.css({ position:"relative",top:0,"float":"right",width:self.opt.cursorwidth,height:"0px", 'background-color':self.opt.cursorcolor, border:self.opt.cursorborder, 'background-clip':'padding-box', '-webkit-border-radius':self.opt.cursorborderradius, '-moz-border-radius':self.opt.cursorborderradius, 'border-radius':self.opt.cursorborderradius }); cursor.hborder=parseFloat(cursor.outerHeight() - cursor.innerHeight()); self.cursor=cursor; var rail=$(document.createElement('div')); rail.attr('id',self.id); rail.addClass('nicescroll-rails'); var v,a,kp=["left","right"]; //"top","bottom" for(var n in kp){ a=kp[n]; v=self.opt.railpadding[a]; (v) ? rail.css("padding-"+a,v+"px"):self.opt.railpadding[a]=0; } rail.append(cursor); rail.width=Math.max(parseFloat(self.opt.cursorwidth),cursor.outerWidth()) + self.opt.railpadding['left'] + self.opt.railpadding['right']; rail.css({width:rail.width+"px",'zIndex':self.zindex,"background":self.opt.background,cursor:"default"}); rail.visibility=true; rail.scrollable=true; rail.align=(self.opt.railalign=="left") ? 0:1; self.rail=rail; self.rail.drag=false; var zoom=false; if(self.opt.boxzoom&&!self.ispage&&!cap.isieold){ zoom=document.createElement('div'); self.bind(zoom,"click",self.doZoom); self.zoom=$(zoom); self.zoom.css({"cursor":"pointer",'z-index':self.zindex,'backgroundImage':'url('+scriptpath+'zoomico.png)','height':18,'width':18,'backgroundPosition':'0px 0px'}); if(self.opt.dblclickzoom) self.bind(self.win,"dblclick",self.doZoom); if(cap.cantouch&&self.opt.gesturezoom){ self.ongesturezoom=function(e){ if(e.scale>1.5) self.doZoomIn(e); if(e.scale<0.8) self.doZoomOut(e); return self.cancelEvent(e); }; self.bind(self.win,"gestureend",self.ongesturezoom); }} self.railh=false; if(self.opt.horizrailenabled){ self.css(cont,{'overflow-x':'hidden'}); var cursor=$(document.createElement('div')); cursor.css({ position:"relative",top:0,height:self.opt.cursorwidth,width:"0px", 'background-color':self.opt.cursorcolor, border:self.opt.cursorborder, 'background-clip':'padding-box', '-webkit-border-radius':self.opt.cursorborderradius, '-moz-border-radius':self.opt.cursorborderradius, 'border-radius':self.opt.cursorborderradius }); cursor.wborder=parseFloat(cursor.outerWidth() - cursor.innerWidth()); self.cursorh=cursor; var railh=$(document.createElement('div')); railh.attr('id',self.id+'-hr'); railh.addClass('nicescroll-rails'); railh.height=Math.max(parseFloat(self.opt.cursorwidth),cursor.outerHeight()); railh.css({height:railh.height+"px",'zIndex':self.zindex,"background":self.opt.background}); railh.append(cursor); railh.visibility=true; railh.scrollable=true; railh.align=(self.opt.railvalign=="top") ? 0:1; self.railh=railh; self.railh.drag=false; } if(self.ispage){ rail.css({position:"fixed",top:"0px",height:"100%"}); (rail.align) ? rail.css({right:"0px"}):rail.css({left:"0px"}); self.body.append(rail); if(self.railh){ railh.css({position:"fixed",left:"0px",width:"100%"}); (railh.align) ? railh.css({bottom:"0px"}):railh.css({top:"0px"}); self.body.append(railh); }}else{ if(self.ishwscroll){ if(self.win.css('position')=='static') self.css(self.win,{'position':'relative'}); var bd=(self.win[0].nodeName=='HTML') ? self.body:self.win; if(self.zoom){ self.zoom.css({position:"absolute",top:1,right:0,"margin-right":rail.width+4}); bd.append(self.zoom); } rail.css({position:"absolute",top:0}); (rail.align) ? rail.css({right:0}):rail.css({left:0}); bd.append(rail); if(railh){ railh.css({position:"absolute",left:0,bottom:0}); (railh.align) ? railh.css({bottom:0}):railh.css({top:0}); bd.append(railh); }}else{ self.isfixed=(self.win.css("position")=="fixed"); var rlpos=(self.isfixed) ? "fixed":"absolute"; if(!self.isfixed) self.viewport=self.getViewport(self.win[0]); if(self.viewport){ self.body=self.viewport; if((/relative|absolute/.test(self.viewport.css("position")))==false) self.css(self.viewport,{"position":"relative"}); } rail.css({position:rlpos}); if(self.zoom) self.zoom.css({position:rlpos}); self.updateScrollBar(); self.body.append(rail); if(self.zoom) self.body.append(self.zoom); if(self.railh){ railh.css({position:rlpos}); self.body.append(railh); }} if(cap.isios) self.css(self.win,{'-webkit-tap-highlight-color':'rgba(0,0,0,0)','-webkit-touch-callout':'none'}); if(cap.isie&&self.opt.disableoutline) self.win.attr("hideFocus","true"); if(cap.iswebkit&&self.opt.disableoutline) self.win.css({"outline":"none"}); } if(self.opt.autohidemode===false){ self.autohidedom=false; self.rail.css({opacity:self.opt.cursoropacitymax}); if(self.railh) self.railh.css({opacity:self.opt.cursoropacitymax}); } else if(self.opt.autohidemode===true){ self.autohidedom=$().add(self.rail); if(cap.isie8) self.autohidedom=self.autohidedom.add(self.cursor); if(self.railh) self.autohidedom=self.autohidedom.add(self.railh); if(self.railh&&cap.isie8) self.autohidedom=self.autohidedom.add(self.cursorh); } else if(self.opt.autohidemode=="scroll"){ self.autohidedom=$().add(self.rail); if(self.railh) self.autohidedom=self.autohidedom.add(self.railh); } else if(self.opt.autohidemode=="cursor"){ self.autohidedom=$().add(self.cursor); if(self.railh) self.autohidedom=self.autohidedom.add(self.cursorh); } else if(self.opt.autohidemode=="hidden"){ self.autohidedom=false; self.hide(); self.locked=false; } if(cap.isie9mobile){ self.scrollmom=new ScrollMomentumClass2D(self); /* var trace=function(msg){ var db=$("#debug"); if(isNaN(msg)&&(typeof msg!="string")){ var x=[]; for(var a in msg){ x.push(a+":"+msg[a]); } msg="{"+x.join(",")+"}"; } if(db.children().length>0){ db.children().eq(0).before("
"+msg+"
"); }else{ db.append("
"+msg+"
"); }} window.onerror=function(msg,url,ln){ trace("ERR: "+msg+" at "+ln); } */ self.onmangotouch=function(e){ var py=self.getScrollTop(); var px=self.getScrollLeft(); if((py==self.scrollmom.lastscrolly)&&(px==self.scrollmom.lastscrollx)) return true; var dfy=py-self.mangotouch.sy; var dfx=px-self.mangotouch.sx; var df=Math.round(Math.sqrt(Math.pow(dfx,2)+Math.pow(dfy,2))); if(df==0) return; var dry=(dfy<0)?-1:1; var drx=(dfx<0)?-1:1; var tm=+new Date(); if(self.mangotouch.lazy) clearTimeout(self.mangotouch.lazy); if(((tm-self.mangotouch.tm)>80)||(self.mangotouch.dry!=dry)||(self.mangotouch.drx!=drx)){ self.scrollmom.stop(); self.scrollmom.reset(px,py); self.mangotouch.sy=py; self.mangotouch.ly=py; self.mangotouch.sx=px; self.mangotouch.lx=px; self.mangotouch.dry=dry; self.mangotouch.drx=drx; self.mangotouch.tm=tm; }else{ self.scrollmom.stop(); self.scrollmom.update(self.mangotouch.sx-dfx,self.mangotouch.sy-dfy); var gap=tm - self.mangotouch.tm; self.mangotouch.tm=tm; var ds=Math.max(Math.abs(self.mangotouch.ly-py),Math.abs(self.mangotouch.lx-px)); self.mangotouch.ly=py; self.mangotouch.lx=px; if(ds>2){ self.mangotouch.lazy=setTimeout(function(){ self.mangotouch.lazy=false; self.mangotouch.dry=0; self.mangotouch.drx=0; self.mangotouch.tm=0; self.scrollmom.doMomentum(30); },100); }} } var top=self.getScrollTop(); var lef=self.getScrollLeft(); self.mangotouch={sy:top,ly:top,dry:0,sx:lef,lx:lef,drx:0,lazy:false,tm:0}; self.bind(self.docscroll,"scroll",self.onmangotouch); }else{ if(cap.cantouch||self.istouchcapable||self.opt.touchbehavior||cap.hasmstouch){ self.scrollmom=new ScrollMomentumClass2D(self); self.ontouchstart=function(e){ if(e.pointerType&&e.pointerType!=2) return false; if(!self.locked){ if(cap.hasmstouch){ var tg=(e.target) ? e.target:false; while (tg){ var nc=$(tg).getNiceScroll(); if((nc.length>0)&&(nc[0].me==self.me)) break; if(nc.length>0) return false; if((tg.nodeName=='DIV')&&(tg.id==self.id)) break; tg=(tg.parentNode) ? tg.parentNode:false; }} self.cancelScroll(); var tg=self.getTarget(e); if(tg){ var skp=(/INPUT/i.test(tg.nodeName))&&(/range/i.test(tg.type)); if(skp) return self.stopPropagation(e); } if(!("clientX" in e)&&("changedTouches" in e)){ e.clientX=e.changedTouches[0].clientX; e.clientY=e.changedTouches[0].clientY; } if(self.forcescreen){ var le=e; var e={"original":(e.original)?e.original:e}; e.clientX=le.screenX; e.clientY=le.screenY; } self.rail.drag={x:e.clientX,y:e.clientY,sx:self.scroll.x,sy:self.scroll.y,st:self.getScrollTop(),sl:self.getScrollLeft(),pt:2,dl:false}; if(self.ispage||!self.opt.directionlockdeadzone){ self.rail.drag.dl="f"; }else{ var view={ w:$(window).width(), h:$(window).height() }; var page={ w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth), h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight) } var maxh=Math.max(0,page.h - view.h); var maxw=Math.max(0,page.w - view.w); if(!self.rail.scrollable&&self.railh.scrollable) self.rail.drag.ck=(maxh>0) ? "v":false; else if(self.rail.scrollable&&!self.railh.scrollable) self.rail.drag.ck=(maxw>0) ? "h":false; else self.rail.drag.ck=false; if(!self.rail.drag.ck) self.rail.drag.dl="f"; } if(self.opt.touchbehavior&&self.isiframe&&cap.isie){ var wp=self.win.position(); self.rail.drag.x+=wp.left; self.rail.drag.y+=wp.top; } self.hasmoving=false; self.lastmouseup=false; self.scrollmom.reset(e.clientX,e.clientY); if(!cap.cantouch&&!this.istouchcapable&&!cap.hasmstouch){ var ip=(tg)?/INPUT|SELECT|TEXTAREA/i.test(tg.nodeName):false; if(!ip){ if(!self.ispage&&cap.hasmousecapture) tg.setCapture(); return (self.opt.touchbehavior) ? self.cancelEvent(e):self.stopPropagation(e); } if(/SUBMIT|CANCEL|BUTTON/i.test($(tg).attr('type'))){ pc={"tg":tg,"click":false}; self.preventclick=pc; }} }}; self.ontouchend=function(e){ if(e.pointerType&&e.pointerType!=2) return false; if(self.rail.drag&&(self.rail.drag.pt==2)){ self.scrollmom.doMomentum(); self.rail.drag=false; if(self.hasmoving){ self.hasmoving=false; self.lastmouseup=true; self.hideCursor(); if(cap.hasmousecapture) document.releaseCapture(); if(!cap.cantouch) return self.cancelEvent(e); }} }; var moveneedoffset=(self.opt.touchbehavior&&self.isiframe&&!cap.hasmousecapture); self.ontouchmove=function(e,byiframe){ if(e.pointerType&&e.pointerType!=2) return false; if(self.rail.drag&&(self.rail.drag.pt==2)){ if(cap.cantouch&&(typeof e.original=="undefined")) return true; self.hasmoving=true; if(self.preventclick&&!self.preventclick.click){ self.preventclick.click=self.preventclick.tg.onclick||false; self.preventclick.tg.onclick=self.onpreventclick; } var ev=$.extend({"original":e},e); e=ev; if(("changedTouches" in e)){ e.clientX=e.changedTouches[0].clientX; e.clientY=e.changedTouches[0].clientY; } if(self.forcescreen){ var le=e; var e={"original":(e.original)?e.original:e}; e.clientX=le.screenX; e.clientY=le.screenY; } var ofx=ofy=0; if(moveneedoffset&&!byiframe){ var wp=self.win.position(); ofx=-wp.left; ofy=-wp.top; } var fy=e.clientY + ofy; var my=(fy-self.rail.drag.y); var fx=e.clientX + ofx; var mx=(fx-self.rail.drag.x); var ny=self.rail.drag.st-my; if(self.ishwscroll&&self.opt.bouncescroll){ if(ny<0){ ny=Math.round(ny/2); } else if(ny>self.page.maxh){ ny=self.page.maxh+Math.round((ny-self.page.maxh)/2); }}else{ if(ny<0){ny=0;fy=0} if(ny>self.page.maxh){ny=self.page.maxh;fy=0}} if(self.railh&&self.railh.scrollable){ var nx=self.rail.drag.sl-mx; if(self.ishwscroll&&self.opt.bouncescroll){ if(nx<0){ nx=Math.round(nx/2); } else if(nx>self.page.maxw){ nx=self.page.maxw+Math.round((nx-self.page.maxw)/2); }}else{ if(nx<0){nx=0;fx=0} if(nx>self.page.maxw){nx=self.page.maxw;fx=0}} } var grabbed=false; if(self.rail.drag.dl){ grabbed=true; if(self.rail.drag.dl=="v") nx=self.rail.drag.sl; else if(self.rail.drag.dl=="h") ny=self.rail.drag.st; }else{ var ay=Math.abs(my); var ax=Math.abs(mx); var dz=self.opt.directionlockdeadzone; if(self.rail.drag.ck=="v"){ if(ay>dz&&(ax<=(ay*0.3))){ self.rail.drag=false; return true; } else if(ax>dz){ self.rail.drag.dl="f"; $("body").scrollTop($("body").scrollTop()); }} else if(self.rail.drag.ck=="h"){ if(ax>dz&&(ay<=(ax*0.3))){ self.rail.drag=false; return true; } else if(ay>dz){ self.rail.drag.dl="f"; $("body").scrollLeft($("body").scrollLeft()); }} } self.synched("touchmove",function(){ if(self.rail.drag&&(self.rail.drag.pt==2)){ if(self.prepareTransition) self.prepareTransition(0); if(self.rail.scrollable) self.setScrollTop(ny); self.scrollmom.update(fx,fy); if(self.railh&&self.railh.scrollable){ self.setScrollLeft(nx); self.showCursor(ny,nx); }else{ self.showCursor(ny); } if(cap.isie10) document.selection.clear(); }}); if(cap.ischrome&&self.istouchcapable) grabbed=false; if(grabbed) return self.cancelEvent(e); }};} self.onmousedown=function(e,hronly){ if(self.rail.drag&&self.rail.drag.pt!=1) return; if(self.locked) return self.cancelEvent(e); self.cancelScroll(); self.rail.drag={x:e.clientX,y:e.clientY,sx:self.scroll.x,sy:self.scroll.y,pt:1,hr:(!!hronly)}; var tg=self.getTarget(e); if(!self.ispage&&cap.hasmousecapture) tg.setCapture(); if(self.isiframe&&!cap.hasmousecapture){ self.saved["csspointerevents"]=self.doc.css("pointer-events"); self.css(self.doc,{"pointer-events":"none"}); } return self.cancelEvent(e); }; self.onmouseup=function(e){ if(self.rail.drag){ if(cap.hasmousecapture) document.releaseCapture(); if(self.isiframe&&!cap.hasmousecapture) self.doc.css("pointer-events",self.saved["csspointerevents"]); if(self.rail.drag.pt!=1)return; self.rail.drag=false; return self.cancelEvent(e); }}; self.onmousemove=function(e){ if(self.rail.drag){ if(self.rail.drag.pt!=1)return; if(cap.ischrome&&e.which==0) return self.onmouseup(e); self.cursorfreezed=true; if(self.rail.drag.hr){ self.scroll.x=self.rail.drag.sx + (e.clientX-self.rail.drag.x); if(self.scroll.x<0) self.scroll.x=0; var mw=self.scrollvaluemaxw; if(self.scroll.x>mw) self.scroll.x=mw; }else{ self.scroll.y=self.rail.drag.sy + (e.clientY-self.rail.drag.y); if(self.scroll.y<0) self.scroll.y=0; var my=self.scrollvaluemax; if(self.scroll.y>my) self.scroll.y=my; } self.synched('mousemove',function(){ if(self.rail.drag&&(self.rail.drag.pt==1)){ self.showCursor(); if(self.rail.drag.hr) self.doScrollLeft(Math.round(self.scroll.x*self.scrollratio.x),self.opt.cursordragspeed); else self.doScrollTop(Math.round(self.scroll.y*self.scrollratio.y),self.opt.cursordragspeed); }}); return self.cancelEvent(e); } }; if(cap.cantouch||self.opt.touchbehavior){ self.onpreventclick=function(e){ if(self.preventclick){ self.preventclick.tg.onclick=self.preventclick.click; self.preventclick=false; return self.cancelEvent(e); }} self.bind(self.win,"mousedown",self.ontouchstart); self.onclick=(cap.isios) ? false:function(e){ if(self.lastmouseup){ self.lastmouseup=false; return self.cancelEvent(e); }else{ return true; }}; if(self.opt.grabcursorenabled&&cap.cursorgrabvalue){ self.css((self.ispage)?self.doc:self.win,{'cursor':cap.cursorgrabvalue}); self.css(self.rail,{'cursor':cap.cursorgrabvalue}); }}else{ function checkSelectionScroll(e){ if(!self.selectiondrag) return; if(e){ var ww=self.win.outerHeight(); var df=(e.pageY - self.selectiondrag.top); if(df>0&&df=ww) df-=ww; self.selectiondrag.df=df; } if(self.selectiondrag.df==0) return; var rt=-Math.floor(self.selectiondrag.df/6)*2; self.doScrollBy(rt); self.debounced("doselectionscroll",function(){checkSelectionScroll()},50); } if("getSelection" in document){ self.hasTextSelected=function(){ return (document.getSelection().rangeCount>0); }} else if("selection" in document){ self.hasTextSelected=function(){ return (document.selection.type!="None"); }}else{ self.hasTextSelected=function(){ return false; }} self.onselectionstart=function(e){ if(self.ispage) return; self.selectiondrag=self.win.offset(); } self.onselectionend=function(e){ self.selectiondrag=false; } self.onselectiondrag=function(e){ if(!self.selectiondrag) return; if(self.hasTextSelected()) self.debounced("selectionscroll",function(){checkSelectionScroll(e)},250); }} if(cap.hasmstouch){ self.css(self.rail,{'-ms-touch-action':'none'}); self.css(self.cursor,{'-ms-touch-action':'none'}); self.bind(self.win,"MSPointerDown",self.ontouchstart); self.bind(document,"MSPointerUp",self.ontouchend); self.bind(document,"MSPointerMove",self.ontouchmove); self.bind(self.cursor,"MSGestureHold",function(e){e.preventDefault()}); self.bind(self.cursor,"contextmenu",function(e){e.preventDefault()}); } if(this.istouchcapable){ self.bind(self.win,"touchstart",self.ontouchstart); self.bind(document,"touchend",self.ontouchend); self.bind(document,"touchcancel",self.ontouchend); self.bind(document,"touchmove",self.ontouchmove); } self.bind(self.cursor,"mousedown",self.onmousedown); self.bind(self.cursor,"mouseup",self.onmouseup); if(self.railh){ self.bind(self.cursorh,"mousedown",function(e){self.onmousedown(e,true)}); self.bind(self.cursorh,"mouseup",function(e){ if(self.rail.drag&&self.rail.drag.pt==2) return; self.rail.drag=false; self.hasmoving=false; self.hideCursor(); if(cap.hasmousecapture) document.releaseCapture(); return self.cancelEvent(e); }); } if(self.opt.cursordragontouch||!cap.cantouch&&!self.opt.touchbehavior){ self.rail.css({"cursor":"default"}); self.railh&&self.railh.css({"cursor":"default"}); self.jqbind(self.rail,"mouseenter",function(){ if(self.canshowonmouseevent) self.showCursor(); self.rail.active=true; }); self.jqbind(self.rail,"mouseleave",function(){ self.rail.active=false; if(!self.rail.drag) self.hideCursor(); }); if(self.opt.sensitiverail){ self.bind(self.rail,"click",function(e){self.doRailClick(e,false,false)}); self.bind(self.rail,"dblclick",function(e){self.doRailClick(e,true,false)}); self.bind(self.cursor,"click",function(e){self.cancelEvent(e)}); self.bind(self.cursor,"dblclick",function(e){self.cancelEvent(e)}); } if(self.railh){ self.jqbind(self.railh,"mouseenter",function(){ if(self.canshowonmouseevent) self.showCursor(); self.rail.active=true; }); self.jqbind(self.railh,"mouseleave",function(){ self.rail.active=false; if(!self.rail.drag) self.hideCursor(); }); if(self.opt.sensitiverail){ self.bind(self.railh, "click", function(e){self.doRailClick(e,false,true)}); self.bind(self.railh, "dblclick", function(e){self.doRailClick(e, true, true) }); self.bind(self.cursorh, "click", function (e){ self.cancelEvent(e) }); self.bind(self.cursorh, "dblclick", function (e){ self.cancelEvent(e) }); }} } if(!cap.cantouch&&!self.opt.touchbehavior){ self.bind((cap.hasmousecapture)?self.win:document,"mouseup",self.onmouseup); self.bind(document,"mousemove",self.onmousemove); if(self.onclick) self.bind(document,"click",self.onclick); if(!self.ispage&&self.opt.enablescrollonselection){ self.bind(self.win[0],"mousedown",self.onselectionstart); self.bind(document,"mouseup",self.onselectionend); self.bind(self.cursor,"mouseup",self.onselectionend); if(self.cursorh) self.bind(self.cursorh,"mouseup",self.onselectionend); self.bind(document,"mousemove",self.onselectiondrag); } if(self.zoom){ self.jqbind(self.zoom,"mouseenter",function(){ if(self.canshowonmouseevent) self.showCursor(); self.rail.active=true; }); self.jqbind(self.zoom,"mouseleave",function(){ self.rail.active=false; if(!self.rail.drag) self.hideCursor(); }); }}else{ self.bind((cap.hasmousecapture)?self.win:document,"mouseup",self.ontouchend); self.bind(document,"mousemove",self.ontouchmove); if(self.onclick) self.bind(document,"click",self.onclick); if(self.opt.cursordragontouch){ self.bind(self.cursor,"mousedown",self.onmousedown); self.bind(self.cursor,"mousemove",self.onmousemove); self.cursorh&&self.bind(self.cursorh,"mousedown",self.onmousedown); self.cursorh&&self.bind(self.cursorh,"mousemove",self.onmousemove); }} if(self.opt.enablemousewheel){ if(!self.isiframe) self.bind((cap.isie&&self.ispage) ? document:self.win ,"mousewheel",self.onmousewheel); self.bind(self.rail,"mousewheel",self.onmousewheel); if(self.railh) self.bind(self.railh,"mousewheel",self.onmousewheelhr); } if(!self.ispage&&!cap.cantouch&&!(/HTML|BODY/.test(self.win[0].nodeName))){ if(!self.win.attr("tabindex")) self.win.attr({"tabindex":tabindexcounter++}); self.jqbind(self.win,"focus",function(e){ domfocus=(self.getTarget(e)).id||true; self.hasfocus=true; if(self.canshowonmouseevent) self.noticeCursor(); }); self.jqbind(self.win,"blur",function(e){ domfocus=false; self.hasfocus=false; }); self.jqbind(self.win,"mouseenter",function(e){ mousefocus=(self.getTarget(e)).id||true; self.hasmousefocus=true; if(self.canshowonmouseevent) self.noticeCursor(); }); self.jqbind(self.win,"mouseleave",function(){ mousefocus=false; self.hasmousefocus=false; }); };} self.onkeypress=function(e){ if(self.locked&&self.page.maxh==0) return true; e=(e) ? e:window.e; var tg=self.getTarget(e); if(tg&&/INPUT|TEXTAREA|SELECT|OPTION/.test(tg.nodeName)){ var tp=tg.getAttribute('type')||tg.type||false; if((!tp)||!(/submit|button|cancel/i.tp)) return true; } if(self.hasfocus||(self.hasmousefocus&&!domfocus)||(self.ispage&&!domfocus&&!mousefocus)){ var key=e.keyCode; if(self.locked&&key!=27) return self.cancelEvent(e); var ctrl=e.ctrlKey||false; var shift=e.shiftKey||false; var ret=false; switch (key){ case 38: case 63233: self.doScrollBy(24*3); ret=true; break; case 40: case 63235: self.doScrollBy(-24*3); ret=true; break; case 37: case 63232: if(self.railh){ (ctrl) ? self.doScrollLeft(0):self.doScrollLeftBy(24*3); ret=true; } break; case 39: case 63234: if(self.railh){ (ctrl) ? self.doScrollLeft(self.page.maxw):self.doScrollLeftBy(-24*3); ret=true; } break; case 33: case 63276: self.doScrollBy(self.view.h); ret=true; break; case 34: case 63277: self.doScrollBy(-self.view.h); ret=true; break; case 36: case 63273: (self.railh&&ctrl) ? self.doScrollPos(0,0):self.doScrollTo(0); ret=true; break; case 35: case 63275: (self.railh&&ctrl) ? self.doScrollPos(self.page.maxw,self.page.maxh):self.doScrollTo(self.page.maxh); ret=true; break; case 32: if(self.opt.spacebarenabled){ (shift) ? self.doScrollBy(self.view.h):self.doScrollBy(-self.view.h); ret=true; } break; case 27: if(self.zoomactive){ self.doZoom(); ret=true; } break; } if(ret) return self.cancelEvent(e); }}; if(self.opt.enablekeyboard) self.bind(document,(cap.isopera&&!cap.isopera12)?"keypress":"keydown",self.onkeypress); self.bind(window,'resize',self.lazyResize); self.bind(window,'orientationchange',self.lazyResize); self.bind(window,"load",self.lazyResize); if(cap.ischrome&&!self.ispage&&!self.haswrapper){ var tmp=self.win.attr("style"); var ww=parseFloat(self.win.css("width"))+1; self.win.css('width',ww); self.synched("chromefix",function(){self.win.attr("style",tmp)}); } self.onAttributeChange=function(e){ self.lazyResize(250); } if(!self.ispage&&!self.haswrapper){ if(clsMutationObserver!==false){ self.observer=new clsMutationObserver(function(mutations){ mutations.forEach(self.onAttributeChange); }); self.observer.observe(self.win[0],{childList: true, characterData: false, attributes: true, subtree: false}); self.observerremover=new clsMutationObserver(function(mutations){ mutations.forEach(function(mo){ if(mo.removedNodes.length>0){ for (var dd in mo.removedNodes){ if(mo.removedNodes[dd]==self.win[0]) return self.remove(); }} }); }); self.observerremover.observe(self.win[0].parentNode,{childList: true, characterData: false, attributes: false, subtree: false}); }else{ self.bind(self.win,(cap.isie&&!cap.isie9)?"propertychange":"DOMAttrModified",self.onAttributeChange); if(cap.isie9) self.win[0].attachEvent("onpropertychange",self.onAttributeChange); self.bind(self.win,"DOMNodeRemoved",function(e){ if(e.target==self.win[0]) self.remove(); }); }} if(!self.ispage&&self.opt.boxzoom) self.bind(window,"resize",self.resizeZoom); if(self.istextarea) self.bind(self.win,"mouseup",self.lazyResize); self.checkrtlmode=true; self.lazyResize(30); } if(this.doc[0].nodeName=='IFRAME'){ function oniframeload(e){ self.iframexd=false; try { var doc='contentDocument' in this ? this.contentDocument:this.contentWindow.document; var a=doc.domain; } catch(e){self.iframexd=true;doc=false}; if(self.iframexd){ if("console" in window) console.log('NiceScroll error: policy restriced iframe'); return true; } self.forcescreen=true; if(self.isiframe){ self.iframe={ "doc":$(doc), "html":self.doc.contents().find('html')[0], "body":self.doc.contents().find('body')[0] }; self.getContentSize=function(){ return { w:Math.max(self.iframe.html.scrollWidth,self.iframe.body.scrollWidth), h:Math.max(self.iframe.html.scrollHeight,self.iframe.body.scrollHeight) }} self.docscroll=$(self.iframe.body);//$(this.contentWindow); } if(!cap.isios&&self.opt.iframeautoresize&&!self.isiframe){ self.win.scrollTop(0); self.doc.height(""); var hh=Math.max(doc.getElementsByTagName('html')[0].scrollHeight,doc.body.scrollHeight); self.doc.height(hh); } self.lazyResize(30); if(cap.isie7) self.css($(self.iframe.html),{'overflow-y':'hidden'}); self.css($(self.iframe.body),{'overflow-y':'hidden'}); if(cap.isios&&self.haswrapper){ self.css($(doc.body),{'-webkit-transform':'translate3d(0,0,0)'}); console.log(1); } if('contentWindow' in this){ self.bind(this.contentWindow,"scroll",self.onscroll); }else{ self.bind(doc,"scroll",self.onscroll); } if(self.opt.enablemousewheel){ self.bind(doc,"mousewheel",self.onmousewheel); } if(self.opt.enablekeyboard) self.bind(doc,(cap.isopera)?"keypress":"keydown",self.onkeypress); if(cap.cantouch||self.opt.touchbehavior){ self.bind(doc,"mousedown",self.ontouchstart); self.bind(doc,"mousemove",function(e){self.ontouchmove(e,true)}); if(self.opt.grabcursorenabled&&cap.cursorgrabvalue) self.css($(doc.body),{'cursor':cap.cursorgrabvalue}); } self.bind(doc,"mouseup",self.ontouchend); if(self.zoom){ if(self.opt.dblclickzoom) self.bind(doc,'dblclick',self.doZoom); if(self.ongesturezoom) self.bind(doc,"gestureend",self.ongesturezoom); }}; if(this.doc[0].readyState&&this.doc[0].readyState=="complete"){ setTimeout(function(){oniframeload.call(self.doc[0],false)},500); } self.bind(this.doc,"load",oniframeload); }}; this.showCursor=function(py,px){ if(self.cursortimeout){ clearTimeout(self.cursortimeout); self.cursortimeout=0; } if(!self.rail) return; if(self.autohidedom){ self.autohidedom.stop().css({opacity:self.opt.cursoropacitymax}); self.cursoractive=true; } if(!self.rail.drag||self.rail.drag.pt!=1){ if((typeof py!="undefined")&&(py!==false)){ self.scroll.y=Math.round(py * 1/self.scrollratio.y); } if(typeof px!="undefined"){ self.scroll.x=Math.round(px * 1/self.scrollratio.x); }} self.cursor.css({height:self.cursorheight,top:self.scroll.y}); if(self.cursorh){ (!self.rail.align&&self.rail.visibility) ? self.cursorh.css({width:self.cursorwidth,left:self.scroll.x+self.rail.width}):self.cursorh.css({width:self.cursorwidth,left:self.scroll.x}); self.cursoractive=true; } if(self.zoom) self.zoom.stop().css({opacity:self.opt.cursoropacitymax}); }; this.hideCursor=function(tm){ if(self.cursortimeout) return; if(!self.rail) return; if(!self.autohidedom) return; self.cursortimeout=setTimeout(function(){ if(!self.rail.active||!self.showonmouseevent){ self.autohidedom.stop().animate({opacity:self.opt.cursoropacitymin}); if(self.zoom) self.zoom.stop().animate({opacity:self.opt.cursoropacitymin}); self.cursoractive=false; } self.cursortimeout=0; },tm||self.opt.hidecursordelay); }; this.noticeCursor=function(tm,py,px){ self.showCursor(py,px); if(!self.rail.active) self.hideCursor(tm); }; this.getContentSize = (self.ispage) ? function(){ return { w:Math.max(document.body.scrollWidth,document.documentElement.scrollWidth), h:Math.max(document.body.scrollHeight,document.documentElement.scrollHeight) }} : (self.haswrapper) ? function(){ return { w:self.doc.outerWidth()+parseInt(self.win.css('paddingLeft'))+parseInt(self.win.css('paddingRight')), h:self.doc.outerHeight()+parseInt(self.win.css('paddingTop'))+parseInt(self.win.css('paddingBottom')) }} : function(){ return { w:self.docscroll[0].scrollWidth, h:self.docscroll[0].scrollHeight }}; this.onResize=function(e,page){ if(!self.win) return false; if(!self.haswrapper&&!self.ispage){ if(self.win.css('display')=='none'){ if(self.visibility) self.hideRail().hideRailHr(); return false; }else{ if(!self.hidden&&!self.visibility) self.showRail().showRailHr(); }} var premaxh=self.page.maxh; var premaxw=self.page.maxw; var preview={h:self.view.h,w:self.view.w}; self.view={ w:(self.ispage) ? self.win.width():parseInt(self.win[0].clientWidth), h:(self.ispage) ? self.win.height():parseInt(self.win[0].clientHeight) }; self.page=(page) ? page:self.getContentSize(); self.page.maxh=Math.max(0,self.page.h - self.view.h); self.page.maxw=Math.max(0,self.page.w - self.view.w); if((self.page.maxh==premaxh)&&(self.page.maxw==premaxw)&&(self.view.w==preview.w)){ if(!self.ispage){ var pos=self.win.offset(); if(self.lastposition){ var lst=self.lastposition; if((lst.top==pos.top)&&(lst.left==pos.left)) return self; } self.lastposition=pos; }else{ return self; }} if(self.page.maxh==0){ self.hideRail(); self.scrollvaluemax=0; self.scroll.y=0; self.scrollratio.y=0; self.cursorheight=0; self.setScrollTop(0); self.rail.scrollable=false; }else{ self.rail.scrollable=true; } if(self.page.maxw==0){ self.hideRailHr(); self.scrollvaluemaxw=0; self.scroll.x=0; self.scrollratio.x=0; self.cursorwidth=0; self.setScrollLeft(0); self.railh.scrollable=false; }else{ self.railh.scrollable=true; } self.locked=(self.page.maxh==0)&&(self.page.maxw==0); if(self.locked){ if(!self.ispage) self.updateScrollBar(self.view); return false; } if(!self.hidden&&!self.visibility){ self.showRail().showRailHr(); } else if(!self.hidden&&!self.railh.visibility) self.showRailHr(); if(self.istextarea&&self.win.css('resize')&&self.win.css('resize')!='none') self.view.h-=20; self.cursorheight=Math.min(self.view.h,Math.round(self.view.h * (self.view.h / self.page.h))); self.cursorheight=(self.opt.cursorfixedheight) ? self.opt.cursorfixedheight:Math.max(self.opt.cursorminheight,self.cursorheight); self.cursorwidth=Math.min(self.view.w,Math.round(self.view.w * (self.view.w / self.page.w))); self.cursorwidth=(self.opt.cursorfixedheight) ? self.opt.cursorfixedheight:Math.max(self.opt.cursorminheight,self.cursorwidth); self.scrollvaluemax=self.view.h-self.cursorheight-self.cursor.hborder; if(self.railh){ self.railh.width=(self.page.maxh>0) ? (self.view.w-self.rail.width):self.view.w; self.scrollvaluemaxw=self.railh.width-self.cursorwidth-self.cursorh.wborder; } if(self.checkrtlmode&&self.railh){ self.checkrtlmode=false; if(self.opt.rtlmode&&self.scroll.x==0) self.setScrollLeft(self.page.maxw); } if(!self.ispage) self.updateScrollBar(self.view); self.scrollratio={ x:(self.page.maxw/self.scrollvaluemaxw), y:(self.page.maxh/self.scrollvaluemax) }; var sy=self.getScrollTop(); if(sy>self.page.maxh){ self.doScrollTop(self.page.maxh); }else{ self.scroll.y=Math.round(self.getScrollTop() * (1/self.scrollratio.y)); self.scroll.x=Math.round(self.getScrollLeft() * (1/self.scrollratio.x)); if(self.cursoractive) self.noticeCursor(); } if(self.scroll.y&&(self.getScrollTop()==0)) self.doScrollTo(Math.floor(self.scroll.y*self.scrollratio.y)); return self; }; this.resize=self.onResize; this.lazyResize=function(tm){ tm=(isNaN(tm)) ? 30:tm; self.delayed('resize',self.resize,tm); return self; } function _modernWheelEvent(dom,name,fn,bubble){ self._bind(dom,name,function(e){ var e=(e) ? e:window.event; var event={ original: e, target: e.target||e.srcElement, type: "wheel", deltaMode: e.type=="MozMousePixelScroll" ? 0:1, deltaX: 0, deltaZ: 0, preventDefault: function(){ e.preventDefault ? e.preventDefault():e.returnValue=false; return false; }, stopImmediatePropagation: function(){ (e.stopImmediatePropagation) ? e.stopImmediatePropagation():e.cancelBubble=true; }}; if(name=="mousewheel"){ event.deltaY=- 1/40 * e.wheelDelta; e.wheelDeltaX&&(event.deltaX=- 1/40 * e.wheelDeltaX); }else{ event.deltaY=e.detail; } return fn.call(dom,event); },bubble); }; this._bind=function(el,name,fn,bubble){ self.events.push({e:el,n:name,f:fn,b:bubble,q:false}); if(el.addEventListener){ el.addEventListener(name,fn,bubble||false); } else if(el.attachEvent){ el.attachEvent("on"+name,fn); }else{ el["on"+name]=fn; }}; this.jqbind=function(dom,name,fn){ self.events.push({e:dom,n:name,f:fn,q:true}); $(dom).bind(name,fn); } this.bind=function(dom,name,fn,bubble){ var el=("jquery" in dom) ? dom[0]:dom; if(name=='mousewheel'){ if("onwheel" in self.win){ self._bind(el,"wheel",fn,bubble||false); }else{ var wname=(typeof document.onmousewheel!="undefined") ? "mousewheel":"DOMMouseScroll"; _modernWheelEvent(el,wname,fn,bubble||false); if(wname=="DOMMouseScroll") _modernWheelEvent(el,"MozMousePixelScroll",fn,bubble||false); }} else if(el.addEventListener){ if(cap.cantouch&&/mouseup|mousedown|mousemove/.test(name)){ var tt=(name=='mousedown')?'touchstart':(name=='mouseup')?'touchend':'touchmove'; self._bind(el,tt,function(e){ if(e.touches){ if(e.touches.length<2){var ev=(e.touches.length)?e.touches[0]:e;ev.original=e;fn.call(this,ev);}} else if(e.changedTouches){var ev=e.changedTouches[0];ev.original=e;fn.call(this,ev);}},bubble||false); } self._bind(el,name,fn,bubble||false); if(cap.cantouch&&name=="mouseup") self._bind(el,"touchcancel",fn,bubble||false); }else{ self._bind(el,name,function(e){ e=e||window.event||false; if(e){ if(e.srcElement) e.target=e.srcElement; } if(!("pageY" in e)){ e.pageX=e.clientX + document.documentElement.scrollLeft; e.pageY=e.clientY + document.documentElement.scrollTop; } return ((fn.call(el,e)===false)||bubble===false) ? self.cancelEvent(e):true; }); }}; this._unbind=function(el,name,fn,bub){ if(el.removeEventListener){ el.removeEventListener(name,fn,bub); } else if(el.detachEvent){ el.detachEvent('on'+name,fn); }else{ el['on'+name]=false; }}; this.unbindAll=function(){ for(var a=0;a0) return dd; dom=(dom.parentNode) ? dom.parentNode:false; } return false; }; function execScrollWheel(e,hr,chkscroll){ var px,py; var rt=1; if(e.deltaMode==0){ px=-Math.floor(e.deltaX*(self.opt.mousescrollstep/(18*3))); py=-Math.floor(e.deltaY*(self.opt.mousescrollstep/(18*3))); } else if(e.deltaMode==1){ px=-Math.floor(e.deltaX*self.opt.mousescrollstep); py=-Math.floor(e.deltaY*self.opt.mousescrollstep); } if(hr&&self.opt.oneaxismousemode&&(px==0)&&py){ px=py; py=0; } if(px){ if(self.scrollmom){self.scrollmom.stop()} self.lastdeltax+=px; self.debounced("mousewheelx",function(){var dt=self.lastdeltax;self.lastdeltax=0;if(!self.rail.drag){self.doScrollLeftBy(dt)}},120); } if(py){ if(self.opt.nativeparentscrolling&&chkscroll&&!self.ispage&&!self.zoomactive){ if(py<0){ if(self.getScrollTop()>=self.page.maxh) return true; }else{ if(self.getScrollTop()<=0) return true; }} if(self.scrollmom){self.scrollmom.stop()} self.lastdeltay+=py; self.debounced("mousewheely",function(){var dt=self.lastdeltay;self.lastdeltay=0;if(!self.rail.drag){self.doScrollBy(dt)}},120); } e.stopImmediatePropagation(); return e.preventDefault(); }; this.onmousewheel=function(e){ if(self.locked){ self.debounced("checkunlock",self.resize,250); return true; } if(self.rail.drag) return self.cancelEvent(e); if(self.opt.oneaxismousemode=="auto"&&e.deltaX!=0) self.opt.oneaxismousemode=false; if(self.opt.oneaxismousemode&&e.deltaX==0){ if(!self.rail.scrollable){ if(self.railh&&self.railh.scrollable){ return self.onmousewheelhr(e); }else{ return true; }} } var nw=+(new Date()); var chk=false; if(self.opt.preservenativescrolling&&((self.checkarea+600)20) ? ex:0; } if(!self.opt.smoothscroll){ this.doScrollLeft=function(x,spd){ var y=self.getScrollTop(); self.doScrollPos(x,y,spd); } this.doScrollTop=function(y,spd){ var x=self.getScrollLeft(); self.doScrollPos(x,y,spd); } this.doScrollPos=function(x,y,spd){ var nx=(x>self.page.maxw) ? self.page.maxw:x; if(nx<0) nx=0; var ny=(y>self.page.maxh) ? self.page.maxh:y; if(ny<0) ny=0; self.synched('scroll',function(){ self.setScrollTop(ny); self.setScrollLeft(nx); }); } this.cancelScroll=function(){};} else if(self.ishwscroll&&cap.hastransition&&self.opt.usetransition){ this.prepareTransition=function(dif,istime){ var ex=(istime) ? ((dif>20)?dif:0):self.getTransitionSpeed(dif); var trans=(ex) ? cap.prefixstyle+'transform '+ex+'ms ease-out':''; if(!self.lasttransitionstyle||self.lasttransitionstyle!=trans){ self.lasttransitionstyle=trans; self.doc.css(cap.transitionstyle,trans); } return ex; }; this.doScrollLeft=function(x,spd){ var y=(self.scrollrunning) ? self.newscrolly:self.getScrollTop(); self.doScrollPos(x,y,spd); } this.doScrollTop=function(y,spd){ var x=(self.scrollrunning) ? self.newscrollx:self.getScrollLeft(); self.doScrollPos(x,y,spd); } this.doScrollPos=function(x,y,spd){ var py=self.getScrollTop(); var px=self.getScrollLeft(); if(((self.newscrolly-py)*(y-py)<0)||((self.newscrollx-px)*(x-px)<0)) self.cancelScroll(); if(self.opt.bouncescroll==false){ if(y<0) y=0; else if(y>self.page.maxh) y=self.page.maxh; if(x<0) x=0; else if(x>self.page.maxw) x=self.page.maxw; } if(self.scrollrunning&&x==self.newscrollx&&y==self.newscrolly) return false; self.newscrolly=y; self.newscrollx=x; self.newscrollspeed=spd||false; if(self.timer) return false; self.timer=setTimeout(function(){ var top=self.getScrollTop(); var lft=self.getScrollLeft(); var dst={}; dst.x=x-lft; dst.y=y-top; dst.px=lft; dst.py=top; var dd=Math.round(Math.sqrt(Math.pow(dst.x,2)+Math.pow(dst.y,2))); var ms=(self.newscrollspeed&&self.newscrollspeed>1) ? self.newscrollspeed:self.getTransitionSpeed(dd); if(self.newscrollspeed&&self.newscrollspeed<=1) ms*=self.newscrollspeed; self.prepareTransition(ms,true); if(self.timerscroll&&self.timerscroll.tm) clearInterval(self.timerscroll.tm); if(ms>0){ if(!self.scrollrunning&&self.onscrollstart){ var info={"type":"scrollstart","current":{"x":lft,"y":top},"request":{"x":x,"y":y},"end":{"x":self.newscrollx,"y":self.newscrolly},"speed":ms}; self.onscrollstart.call(self,info); } if(cap.transitionend){ if(!self.scrollendtrapped){ self.scrollendtrapped=true; self.bind(self.doc,cap.transitionend,self.onScrollEnd,false); }}else{ if(self.scrollendtrapped) clearTimeout(self.scrollendtrapped); self.scrollendtrapped=setTimeout(self.onScrollEnd,ms); } var py=top; var px=lft; self.timerscroll={ bz: new BezierClass(py,self.newscrolly,ms,0,0,0.58,1), bh: new BezierClass(px,self.newscrollx,ms,0,0,0.58,1) }; if(!self.cursorfreezed) self.timerscroll.tm=setInterval(function(){self.showCursor(self.getScrollTop(),self.getScrollLeft())},60); } self.synched("doScroll-set",function(){ self.timer=0; if(self.scrollendtrapped) self.scrollrunning=true; self.setScrollTop(self.newscrolly); self.setScrollLeft(self.newscrollx); if(!self.scrollendtrapped) self.onScrollEnd(); }); },50); }; this.cancelScroll=function(){ if(!self.scrollendtrapped) return true; var py=self.getScrollTop(); var px=self.getScrollLeft(); self.scrollrunning=false; if(!cap.transitionend) clearTimeout(cap.transitionend); self.scrollendtrapped=false; self._unbind(self.doc,cap.transitionend,self.onScrollEnd); self.prepareTransition(0); self.setScrollTop(py); if(self.railh) self.setScrollLeft(px); if(self.timerscroll&&self.timerscroll.tm) clearInterval(self.timerscroll.tm); self.timerscroll=false; self.cursorfreezed=false; self.showCursor(py,px); return self; }; this.onScrollEnd=function(){ if(self.scrollendtrapped) self._unbind(self.doc,cap.transitionend,self.onScrollEnd); self.scrollendtrapped=false; self.prepareTransition(0); if(self.timerscroll&&self.timerscroll.tm) clearInterval(self.timerscroll.tm); self.timerscroll=false; var py=self.getScrollTop(); var px=self.getScrollLeft(); self.setScrollTop(py); if(self.railh) self.setScrollLeft(px); self.noticeCursor(false,py,px); self.cursorfreezed=false; if(py<0) py=0 else if(py>self.page.maxh) py=self.page.maxh; if(px<0) px=0 else if(px>self.page.maxw) px=self.page.maxw; if((py!=self.newscrolly)||(px!=self.newscrollx)) return self.doScrollPos(px,py,self.opt.snapbackspeed); if(self.onscrollend&&self.scrollrunning){ var info={"type":"scrollend","current":{"x":px,"y":py},"end":{"x":self.newscrollx,"y":self.newscrolly}}; self.onscrollend.call(self,info); } self.scrollrunning=false; };}else{ this.doScrollLeft=function(x,spd){ var y=(self.scrollrunning) ? self.newscrolly:self.getScrollTop(); self.doScrollPos(x,y,spd); } this.doScrollTop=function(y,spd){ var x=(self.scrollrunning) ? self.newscrollx:self.getScrollLeft(); self.doScrollPos(x,y,spd); } this.doScrollPos=function(x,y,spd){ var y=((typeof y=="undefined")||(y===false)) ? self.getScrollTop(true):y; if((self.timer)&&(self.newscrolly==y)&&(self.newscrollx==x)) return true; if(self.timer) clearAnimationFrame(self.timer); self.timer=0; var py=self.getScrollTop(); var px=self.getScrollLeft(); if(((self.newscrolly-py)*(y-py)<0)||((self.newscrollx-px)*(x-px)<0)) self.cancelScroll(); self.newscrolly=y; self.newscrollx=x; if(!self.bouncescroll||!self.rail.visibility){ if(self.newscrolly<0){ self.newscrolly=0; } else if(self.newscrolly>self.page.maxh){ self.newscrolly=self.page.maxh; }} if(!self.bouncescroll||!self.railh.visibility){ if(self.newscrollx<0){ self.newscrollx=0; } else if(self.newscrollx>self.page.maxw){ self.newscrollx=self.page.maxw; }} self.dst={}; self.dst.x=x-px; self.dst.y=y-py; self.dst.px=px; self.dst.py=py; var dst=Math.round(Math.sqrt(Math.pow(self.dst.x,2)+Math.pow(self.dst.y,2))); self.dst.ax=self.dst.x / dst; self.dst.ay=self.dst.y / dst; var pa=0; var pe=dst; if(self.dst.x==0){ pa=py; pe=y; self.dst.ay=1; self.dst.py=0; }else if(self.dst.y==0){ pa=px; pe=x; self.dst.ax=1; self.dst.px=0; } var ms=self.getTransitionSpeed(dst); if(spd&&spd<=1) ms*=spd; if(ms>0){ self.bzscroll=(self.bzscroll) ? self.bzscroll.update(pe,ms):new BezierClass(pa,pe,ms,0,1,0,1); }else{ self.bzscroll=false; } if(self.timer) return; if((py==self.page.maxh&&y>=self.page.maxh)||(px==self.page.maxw&&x>=self.page.maxw)) self.checkContentSize(); var sync=1; function scrolling(){ if(self.cancelAnimationFrame) return true; self.scrollrunning=true; sync=1-sync; if(sync) return (self.timer=setAnimationFrame(scrolling)||1); var done=0; var sc=sy=self.getScrollTop(); if(self.dst.ay){ sc=(self.bzscroll) ? self.dst.py + (self.bzscroll.getNow()*self.dst.ay):self.newscrolly; var dr=sc-sy; if((dr<0&&sc0&&sc>self.newscrolly)) sc=self.newscrolly; self.setScrollTop(sc); if(sc==self.newscrolly) done=1; }else{ done=1; } var scx=sx=self.getScrollLeft(); if(self.dst.ax){ scx=(self.bzscroll) ? self.dst.px + (self.bzscroll.getNow()*self.dst.ax):self.newscrollx; var dr=scx-sx; if((dr<0&&scx0&&scx>self.newscrollx)) scx=self.newscrollx; self.setScrollLeft(scx); if(scx==self.newscrollx) done+=1; }else{ done+=1; } if(done==2){ self.timer=0; self.cursorfreezed=false; self.bzscroll=false; self.scrollrunning=false; if(sc<0) sc=0; else if(sc>self.page.maxh) sc=self.page.maxh; if(scx<0) scx=0; else if(scx>self.page.maxw) scx=self.page.maxw; if((scx!=self.newscrollx)||(sc!=self.newscrolly)) self.doScrollPos(scx,sc); else { if(self.onscrollend){ var info={"type":"scrollend","current":{"x":sx,"y":sy},"end":{"x":self.newscrollx,"y":self.newscrolly}}; self.onscrollend.call(self,info); }} }else{ self.timer=setAnimationFrame(scrolling)||1; }}; self.cancelAnimationFrame=false; self.timer=1; if(self.onscrollstart&&!self.scrollrunning){ var info={"type":"scrollstart","current":{"x":px,"y":py},"request":{"x":x,"y":y},"end":{"x":self.newscrollx,"y":self.newscrolly},"speed":ms}; self.onscrollstart.call(self,info); } scrolling(); if((py==self.page.maxh&&y>=py)||(px==self.page.maxw&&x>=px)) self.checkContentSize(); self.noticeCursor(); }; this.cancelScroll=function(){ if(self.timer) clearAnimationFrame(self.timer); self.timer=0; self.bzscroll=false; self.scrollrunning=false; return self; };} this.doScrollBy=function(stp,relative){ var ny=0; if(relative){ ny=Math.floor((self.scroll.y-stp)*self.scrollratio.y) }else{ var sy=(self.timer) ? self.newscrolly:self.getScrollTop(true); ny=sy-stp; } if(self.bouncescroll){ var haf=Math.round(self.view.h/2); if(ny<-haf) ny=-haf else if(ny>(self.page.maxh+haf)) ny=(self.page.maxh+haf); } self.cursorfreezed=false; py=self.getScrollTop(true); if(ny<0&&py<=0) return self.noticeCursor(); else if(ny>self.page.maxh&&py>=self.page.maxh){ self.checkContentSize(); return self.noticeCursor(); } self.doScrollTop(ny); }; this.doScrollLeftBy=function(stp,relative){ var nx=0; if(relative){ nx=Math.floor((self.scroll.x-stp)*self.scrollratio.x) }else{ var sx=(self.timer) ? self.newscrollx:self.getScrollLeft(true); nx=sx-stp; } if(self.bouncescroll){ var haf=Math.round(self.view.w/2); if(nx<-haf) nx=-haf else if(nx>(self.page.maxw+haf)) nx=(self.page.maxw+haf); } self.cursorfreezed=false; px=self.getScrollLeft(true); if(nx<0&&px<=0) return self.noticeCursor(); else if(nx>self.page.maxw&&px>=self.page.maxw) return self.noticeCursor(); self.doScrollLeft(nx); }; this.doScrollTo=function(pos,relative){ var ny=(relative) ? Math.round(pos*self.scrollratio.y):pos; if(ny<0) ny=0 else if(ny>self.page.maxh) ny=self.page.maxh; self.cursorfreezed=false; self.doScrollTop(pos); }; this.checkContentSize=function(){ var pg=self.getContentSize(); if((pg.h!=self.page.h)||(pg.w!=self.page.w)) self.resize(false,pg); }; self.onscroll=function(e){ if(self.rail.drag) return; if(!self.cursorfreezed){ self.synched('scroll',function(){ self.scroll.y=Math.round(self.getScrollTop() * (1/self.scrollratio.y)); if(self.railh) self.scroll.x=Math.round(self.getScrollLeft() * (1/self.scrollratio.x)); self.noticeCursor(); }); }}; self.bind(self.docscroll,"scroll",self.onscroll); this.doZoomIn=function(e){ if(self.zoomactive) return; self.zoomactive=true; self.zoomrestore={ style:{}}; var lst=['position','top','left','zIndex','backgroundColor','marginTop','marginBottom','marginLeft','marginRight']; var win=self.win[0].style; for(var a in lst){ var pp=lst[a]; self.zoomrestore.style[pp]=(typeof win[pp]!="undefined") ? win[pp]:''; } self.zoomrestore.style.width=self.win.css('width'); self.zoomrestore.style.height=self.win.css('height'); self.zoomrestore.padding={ w:self.win.outerWidth()-self.win.width(), h:self.win.outerHeight()-self.win.height() }; if(cap.isios4){ self.zoomrestore.scrollTop=$(window).scrollTop(); $(window).scrollTop(0); } self.win.css({ "position":(cap.isios4)?"absolute":"fixed", "top":0, "left":0, "z-index":globalmaxzindex+100, "margin":"0px" }); var bkg=self.win.css("backgroundColor"); if(bkg==""||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(bkg)) self.win.css("backgroundColor","#fff"); self.rail.css({"z-index":globalmaxzindex+101}); self.zoom.css({"z-index":globalmaxzindex+102}); self.zoom.css('backgroundPosition','0px -18px'); self.resizeZoom(); if(self.onzoomin) self.onzoomin.call(self); return self.cancelEvent(e); }; this.doZoomOut=function(e){ if(!self.zoomactive) return; self.zoomactive=false; self.win.css("margin",""); self.win.css(self.zoomrestore.style); if(cap.isios4){ $(window).scrollTop(self.zoomrestore.scrollTop); } self.rail.css({"z-index":self.zindex}); self.zoom.css({"z-index":self.zindex}); self.zoomrestore=false; self.zoom.css('backgroundPosition','0px 0px'); self.onResize(); if(self.onzoomout) self.onzoomout.call(self); return self.cancelEvent(e); }; this.doZoom=function(e){ return (self.zoomactive) ? self.doZoomOut(e):self.doZoomIn(e); }; this.resizeZoom=function(){ if(!self.zoomactive) return; var py=self.getScrollTop(); self.win.css({ width:$(window).width()-self.zoomrestore.padding.w+"px", height:$(window).height()-self.zoomrestore.padding.h+"px" }); self.onResize(); self.setScrollTop(Math.min(self.page.maxh,py)); }; this.init(); $.nicescroll.push(this); }; var ScrollMomentumClass2D=function(nc){ var self=this; this.nc=nc; this.lastx=0; this.lasty=0; this.speedx=0; this.speedy=0; this.lasttime=0; this.steptime=0; this.snapx=false; this.snapy=false; this.demulx=0; this.demuly=0; this.lastscrollx=-1; this.lastscrolly=-1; this.chkx=0; this.chky=0; this.timer=0; this.time=function(){ return +new Date(); }; this.reset=function(px,py){ self.stop(); var now=self.time(); self.steptime=0; self.lasttime=now; self.speedx=0; self.speedy=0; self.lastx=px; self.lasty=py; self.lastscrollx=-1; self.lastscrolly=-1; }; this.update=function(px,py){ var now=self.time(); self.steptime=now - self.lasttime; self.lasttime=now; var dy=py - self.lasty; var dx=px - self.lastx; var sy=self.nc.getScrollTop(); var sx=self.nc.getScrollLeft(); var newy=sy + dy; var newx=sx + dx; self.snapx=(newx<0)||(newx>self.nc.page.maxw); self.snapy=(newy<0)||(newy>self.nc.page.maxh); self.speedx=dx; self.speedy=dy; self.lastx=px; self.lasty=py; }; this.stop=function(){ self.nc.unsynched("domomentum2d"); if(self.timer) clearTimeout(self.timer); self.timer=0; self.lastscrollx=-1; self.lastscrolly=-1; }; this.doSnapy=function(nx,ny){ var snap=false; if(ny<0){ ny=0; snap=true; } else if(ny>self.nc.page.maxh){ ny=self.nc.page.maxh; snap=true; } if(nx<0){ nx=0; snap=true; } else if(nx>self.nc.page.maxw){ nx=self.nc.page.maxw; snap=true; } if(snap) self.nc.doScrollPos(nx,ny,self.nc.opt.snapbackspeed); }; this.doMomentum=function(gp){ var t=self.time(); var l=(gp) ? t+gp:self.lasttime; var sl=self.nc.getScrollLeft(); var st=self.nc.getScrollTop(); var pageh=self.nc.page.maxh; var pagew=self.nc.page.maxw; self.speedx=(pagew>0) ? Math.min(60,self.speedx):0; self.speedy=(pageh>0) ? Math.min(60,self.speedy):0; var chk=l&&(t - l) <=60; if((st<0)||(st>pageh)||(sl<0)||(sl>pagew)) chk=false; var sy=(self.speedy&&chk) ? self.speedy:false; var sx=(self.speedx&&chk) ? self.speedx:false; if(sy||sx){ var tm=Math.max(16,self.steptime); if(tm>50){ var xm=tm/50; self.speedx*=xm; self.speedy*=xm; tm=50; } self.demulxy=0; self.lastscrollx=self.nc.getScrollLeft(); self.chkx=self.lastscrollx; self.lastscrolly=self.nc.getScrollTop(); self.chky=self.lastscrolly; var nx=self.lastscrollx; var ny=self.lastscrolly; var onscroll=function(){ var df=((self.time()-t)>600) ? 0.04:0.02; if(self.speedx){ nx=Math.floor(self.lastscrollx - (self.speedx*(1-self.demulxy))); self.lastscrollx=nx; if((nx<0)||(nx>pagew)) df=0.10; } if(self.speedy){ ny=Math.floor(self.lastscrolly - (self.speedy*(1-self.demulxy))); self.lastscrolly=ny; if((ny<0)||(ny>pageh)) df=0.10; } self.demulxy=Math.min(1,self.demulxy+df); self.nc.synched("domomentum2d",function(){ if(self.speedx){ var scx=self.nc.getScrollLeft(); if(scx!=self.chkx) self.stop(); self.chkx=nx; self.nc.setScrollLeft(nx); } if(self.speedy){ var scy=self.nc.getScrollTop(); if(scy!=self.chky) self.stop(); self.chky=ny; self.nc.setScrollTop(ny); } if(!self.timer){ self.nc.hideCursor(); self.doSnapy(nx,ny); }}); if(self.demulxy<1){ self.timer=setTimeout(onscroll,tm); }else{ self.stop(); self.nc.hideCursor(); self.doSnapy(nx,ny); }}; onscroll(); }else{ self.doSnapy(self.nc.getScrollLeft(),self.nc.getScrollTop()); }} }; var _scrollTop=jQuery.fn.scrollTop; jQuery.cssHooks["pageYOffset"]={ get: function(elem,computed,extra){ var nice=$.data(elem,'__nicescroll')||false; return (nice&&nice.ishwscroll) ? nice.getScrollTop():_scrollTop.call(elem); }, set: function(elem,value){ var nice=$.data(elem,'__nicescroll')||false; (nice&&nice.ishwscroll) ? nice.setScrollTop(parseInt(value)):_scrollTop.call(elem,value); return this; }}; /* $.fx.step["scrollTop"]=function(fx){ $.cssHooks["scrollTop"].set(fx.elem, fx.now + fx.unit); }; */ jQuery.fn.scrollTop=function(value){ if(typeof value=="undefined"){ var nice=(this[0]) ? $.data(this[0],'__nicescroll')||false:false; return (nice&&nice.ishwscroll) ? nice.getScrollTop():_scrollTop.call(this); }else{ return this.each(function(){ var nice=$.data(this,'__nicescroll')||false; (nice&&nice.ishwscroll) ? nice.setScrollTop(parseInt(value)):_scrollTop.call($(this),value); }); }} var _scrollLeft=jQuery.fn.scrollLeft; $.cssHooks.pageXOffset={ get: function(elem,computed,extra){ var nice=$.data(elem,'__nicescroll')||false; return (nice&&nice.ishwscroll) ? nice.getScrollLeft():_scrollLeft.call(elem); }, set: function(elem,value){ var nice=$.data(elem,'__nicescroll')||false; (nice&&nice.ishwscroll) ? nice.setScrollLeft(parseInt(value)):_scrollLeft.call(elem,value); return this; }}; /* $.fx.step["scrollLeft"]=function(fx){ $.cssHooks["scrollLeft"].set(fx.elem, fx.now + fx.unit); }; */ jQuery.fn.scrollLeft=function(value){ if(typeof value=="undefined"){ var nice=(this[0]) ? $.data(this[0],'__nicescroll')||false:false; return (nice&&nice.ishwscroll) ? nice.getScrollLeft():_scrollLeft.call(this); }else{ return this.each(function(){ var nice=$.data(this,'__nicescroll')||false; (nice&&nice.ishwscroll) ? nice.setScrollLeft(parseInt(value)):_scrollLeft.call($(this),value); }); }} var NiceScrollArray=function(doms){ var self=this; this.length=0; this.name="nicescrollarray"; this.each=function(fn){ for(var a=0,i=0;a=0) ? html:body; activeElement=body; initTest(); if(top!=self){ isFrame=true; } else if(scrollHeight > windowHeight && (body.offsetHeight <=windowHeight || html.offsetHeight <=windowHeight)){ var fullPageElem=document.createElement('div'); fullPageElem.style.cssText='position:absolute; z-index:-10000; ' + 'top:0; left:0; right:0; height:' + root.scrollHeight + 'px'; document.body.appendChild(fullPageElem); var pendingRefresh; refreshSize=function (){ if(pendingRefresh) return; pendingRefresh=setTimeout(function (){ if(isExcluded) return; fullPageElem.style.height='0'; fullPageElem.style.height=root.scrollHeight + 'px'; pendingRefresh=null; }, 500); }; setTimeout(refreshSize, 10); addEvent('resize', refreshSize); jQuery(window).on('resize', refreshSize); var config={ attributes: true, childList: true, characterData: false }; observer=new MutationObserver(refreshSize); observer.observe(body, config); if(root.offsetHeight <=windowHeight){ var clearfix=document.createElement('div'); clearfix.style.clear='both'; body.appendChild(clearfix); }} if(!options.fixedBackground&&!isExcluded){ body.style.backgroundAttachment='scroll'; html.style.backgroundAttachment='scroll'; }} function cleanup(){ observer&&observer.disconnect(); removeEvent(wheelEvent, wheel); removeEvent('mousedown', mousedown); removeEvent('keydown', keydown); removeEvent('resize', refreshSize); removeEvent('load', init); } var que=[]; var pending=false; var lastScroll=Date.now(); function scrollArray(elem, left, top){ directionCheck(left, top); if(options.accelerationMax!=1){ var now=Date.now(); var elapsed=now - lastScroll; if(elapsed < options.accelerationDelta){ var factor=(1 + (50 / elapsed)) / 2; if(factor > 1){ factor=Math.min(factor, options.accelerationMax); left *=factor; top *=factor; }} lastScroll=Date.now(); } que.push({ x: left, y: top, lastX: (left < 0) ? 0.99:-0.99, lastY: (top < 0) ? 0.99:-0.99, start: Date.now() }); if(pending){ return; } var scrollWindow=(elem===document.body); var step=function (time){ var now=Date.now(); var scrollX=0; var scrollY=0; for (var i=0; i < que.length; i++){ var item=que[i]; var elapsed=now - item.start; var finished=(elapsed >=options.animationTime); var position=(finished) ? 1:elapsed / options.animationTime; if(options.pulseAlgorithm){ position=pulse(position); } var x=(item.x * position - item.lastX) >> 0; var y=(item.y * position - item.lastY) >> 0; scrollX +=x; scrollY +=y; item.lastX +=x; item.lastY +=y; if(finished){ que.splice(i, 1); i--; }} if(scrollWindow){ window.scrollBy(scrollX, scrollY); }else{ if(scrollX) elem.scrollLeft +=scrollX; if(scrollY) elem.scrollTop +=scrollY; } if(!left&&!top){ que=[]; } if(que.length){ requestFrame(step, elem, (1000 / options.frameRate + 1)); }else{ pending=false; }}; requestFrame(step, elem, 0); pending=true; } function wheel(event){ if(!initDone){ init(); } var target=event.target; var overflowing=overflowingAncestor(target); if(!overflowing||event.defaultPrevented||event.ctrlKey){ return true; } if(isNodeName(activeElement, 'embed') || (isNodeName(target, 'embed')&&/\.pdf/i.test(target.src)) || isNodeName(activeElement, 'object')){ return true; } var deltaX=-event.wheelDeltaX||event.deltaX||0; var deltaY=-event.wheelDeltaY||event.deltaY||0; if(isMac){ if(event.wheelDeltaX&&isDivisible(event.wheelDeltaX, 120)){ deltaX=-120 * (event.wheelDeltaX / Math.abs(event.wheelDeltaX)); } if(event.wheelDeltaY&&isDivisible(event.wheelDeltaY, 120)){ deltaY=-120 * (event.wheelDeltaY / Math.abs(event.wheelDeltaY)); }} if(!deltaX&&!deltaY){ deltaY=-event.wheelDelta||0; } if(event.deltaMode===1){ deltaX *=40; deltaY *=40; } if(!options.touchpadSupport&&isTouchpad(deltaY)){ return true; } if(Math.abs(deltaX) > 1.2){ deltaX *=options.stepSize / 120; } if(Math.abs(deltaY) > 1.2){ deltaY *=options.stepSize / 120; } scrollArray(overflowing, deltaX, deltaY); event.preventDefault(); scheduleClearCache(); } function keydown(event){ var target=event.target; var modifier=event.ctrlKey||event.altKey||event.metaKey || (event.shiftKey&&event.keyCode!==key.spacebar); if(!document.contains(activeElement)){ activeElement=document.activeElement; } var inputNodeNames=/^(textarea|select|embed|object)$/i; var buttonTypes=/^(button|submit|radio|checkbox|file|color|image)$/i; if(inputNodeNames.test(target.nodeName) || isNodeName(target, 'input')&&!buttonTypes.test(target.type) || isNodeName(activeElement, 'video') || isInsideYoutubeVideo(event) || target.isContentEditable || event.defaultPrevented || modifier){ return true; } if((isNodeName(target, 'button') || isNodeName(target, 'input')&&buttonTypes.test(target.type)) && event.keyCode===key.spacebar){ return true; } var shift, x=0, y=0; var elem=overflowingAncestor(activeElement); var clientHeight=elem.clientHeight; if(elem==document.body){ clientHeight=window.innerHeight; } switch (event.keyCode){ case key.up: y=-options.arrowScroll; break; case key.down: y=options.arrowScroll; break; case key.spacebar: shift=event.shiftKey ? 1:-1; y=-shift * clientHeight * 0.9; break; case key.pageup: y=-clientHeight * 0.9; break; case key.pagedown: y=clientHeight * 0.9; break; case key.home: y=-elem.scrollTop; break; case key.end: var damt=elem.scrollHeight - elem.scrollTop - clientHeight; y=(damt > 0) ? damt+10:0; break; case key.left: x=-options.arrowScroll; break; case key.right: x=options.arrowScroll; break; default: return true; } scrollArray(elem, x, y); event.preventDefault(); scheduleClearCache(); } function mousedown(event){ activeElement=event.target; } var uniqueID=(function (){ var i=0; return function (el){ return el.uniqueID||(el.uniqueID=i++); };})(); var cache={}; var clearCacheTimer; function scheduleClearCache(){ clearTimeout(clearCacheTimer); clearCacheTimer=setInterval(function (){ cache={};}, 1*1000); } function setCache(elems, overflowing){ for (var i=elems.length; i--;) cache[uniqueID(elems[i])]=overflowing; return overflowing; } function overflowingAncestor(el){ var elems=[]; var body=document.body; var rootScrollHeight=root.scrollHeight; do { var cached=cache[uniqueID(el)]; if(cached){ return setCache(elems, cached); } elems.push(el); if(rootScrollHeight===el.scrollHeight){ var topOverflowsNotHidden=overflowNotHidden(root)&&overflowNotHidden(body); var isOverflowCSS=topOverflowsNotHidden||overflowAutoOrScroll(root); if(isFrame&&isContentOverflowing(root) || !isFrame&&isOverflowCSS){ return setCache(elems, getScrollRoot()); }}else if(isContentOverflowing(el)&&overflowAutoOrScroll(el)){ return setCache(elems, el); }} while (el=el.parentElement); } function isContentOverflowing(el){ return (el.clientHeight + 10 < el.scrollHeight); } function overflowNotHidden(el){ var overflow=getComputedStyle(el, '').getPropertyValue('overflow-y'); return (overflow!=='hidden'); } function overflowAutoOrScroll(el){ var overflow=getComputedStyle(el, '').getPropertyValue('overflow-y'); return (overflow==='scroll'||overflow==='auto'); } function addEvent(type, fn){ window.addEventListener(type, fn, false); } function removeEvent(type, fn){ window.removeEventListener(type, fn, false); } function isNodeName(el, tag){ return (el.nodeName||'').toLowerCase()===tag.toLowerCase(); } function directionCheck(x, y){ x=(x > 0) ? 1:-1; y=(y > 0) ? 1:-1; if(direction.x!==x||direction.y!==y){ direction.x=x; direction.y=y; que=[]; lastScroll=0; }} var deltaBufferTimer; if(window.localStorage&&localStorage.SS_deltaBuffer){ deltaBuffer=localStorage.SS_deltaBuffer.split(','); } function isTouchpad(deltaY){ if(!deltaY) return; if(!deltaBuffer.length){ deltaBuffer=[deltaY, deltaY, deltaY]; } deltaY=Math.abs(deltaY) deltaBuffer.push(deltaY); deltaBuffer.shift(); clearTimeout(deltaBufferTimer); deltaBufferTimer=setTimeout(function (){ if(window.localStorage){ localStorage.SS_deltaBuffer=deltaBuffer.join(','); }}, 1000); return !allDeltasDivisableBy(120)&&!allDeltasDivisableBy(100); } function isDivisible(n, divisor){ return (Math.floor(n / divisor)==n / divisor); } function allDeltasDivisableBy(divisor){ return (isDivisible(deltaBuffer[0], divisor) && isDivisible(deltaBuffer[1], divisor) && isDivisible(deltaBuffer[2], divisor)); } function isInsideYoutubeVideo(event){ var elem=event.target; var isControl=false; if(document.URL.indexOf ('www.youtube.com/watch')!=-1){ do { isControl=(elem.classList && elem.classList.contains('html5-video-controls')); if(isControl) break; } while (elem=elem.parentNode); } return isControl; } var requestFrame=(function (){ return (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || function (callback, element, delay){ window.setTimeout(callback, delay||(1000/60)); }); })(); var MutationObserver=(window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver); var getScrollRoot=(function(){ var SCROLL_ROOT; return function(){ if(!SCROLL_ROOT){ var dummy=document.createElement('div'); dummy.style.cssText='height:10000px;width:1px;'; document.body.appendChild(dummy); var bodyScrollTop=document.body.scrollTop; var docElScrollTop=document.documentElement.scrollTop; window.scrollBy(0, 1); if(document.body.scrollTop!=bodyScrollTop) (SCROLL_ROOT=document.body); else (SCROLL_ROOT=document.documentElement); window.scrollBy(0, -1); document.body.removeChild(dummy); } return SCROLL_ROOT; };})(); function pulse_(x){ var val, start, expx; x=x * options.pulseScale; if(x < 1){ val=x - (1 - Math.exp(-x)); }else{ start=Math.exp(-1); x -=1; expx=1 - Math.exp(-x); val=start + (expx * (1 - start)); } return val * options.pulseNormalize; } function pulse(x){ if(x >=1) return 1; if(x <=0) return 0; if(options.pulseNormalize==1){ options.pulseNormalize /=pulse_(1); } return pulse_(x); } var userAgent=window.navigator.userAgent; var isIE=/Trident/.test(userAgent); var isEdge=/Edge/.test(userAgent); var isChrome=/chrome/i.test(userAgent)&&!isEdge; var isSafari=/safari/i.test(userAgent)&&!isEdge; var isMobile=/mobile/i.test(userAgent); var isEnabledForBrowser=(isChrome||isSafari||isEdge)&&!isMobile; var wheelEvent; if('onwheel' in document.createElement('div')) wheelEvent='wheel'; else if('onmousewheel' in document.createElement('div')) wheelEvent='mousewheel'; if(wheelEvent&&isEnabledForBrowser){ addEvent(wheelEvent, wheel); addEvent('mousedown', mousedown); addEvent('load', init); } function SmoothScroll(optionsToSet){ for (var key in optionsToSet) if(defaultOptions.hasOwnProperty(key)) options[key]=optionsToSet[key]; } SmoothScroll.destroy=cleanup; if(window.SmoothScrollOptions) SmoothScroll(window.SmoothScrollOptions) if('object'==typeof exports) module.exports=SmoothScroll; else window.SmoothScroll=SmoothScroll; })(); (function(a){a.fn.addBack=a.fn.addBack||a.fn.andSelf;a.fn.extend({actual:function(b,c){if(!this[b]){throw'$.actual=> The jQuery method "'+b+'" you called does not exist'}var d={absolute:false,clone:false,includeMargin:false};var e=a.extend(d,c);var f=this.eq(0);var g,h;if(e.clone===true){g=function(){var a="position: absolute !important; top: -1000 !important; ";f=f.clone().attr("style",a).appendTo("body")};h=function(){f.remove()}}else{var i=[];var j="";var k;g=function(){k=f.parents().addBack().filter(":hidden");j+="visibility: hidden !important; display: block !important; ";if(e.absolute===true){j+="position: absolute !important; "}k.each(function(){var b=a(this);i.push(b.attr("style"));b.attr("style",j)})};h=function(){k.each(function(b){var c=a(this);var d=i[b];if(d===undefined){c.removeAttr("style")}else{c.attr("style",d)}})}}g();var l=/(outer)/.test(b)?f[b](e.includeMargin):f[b]();h();return l}})})(jQuery);window.matchMedia||(window.matchMedia=function(){"use strict";var a=window.styleMedia||window.media;if(!a){var b=document.createElement("style"),c=document.getElementsByTagName("script")[0],d=null;b.type="text/css";b.id="matchmediajs-test";c.parentNode.insertBefore(b,c);d="getComputedStyle"in window&&window.getComputedStyle(b,null)||b.currentStyle;a={matchMedium:function(a){var c="@media "+a+"{ #matchmediajs-test { width: 1px; }}";if(b.styleSheet){b.styleSheet.cssText=c}else{b.textContent=c}return d.width==="1px"}}}return function(b){return{matches:a.matchMedium(b||"all"),media:b||"all"}}}());(function(){if(window.matchMedia&&window.matchMedia("all").addListener){return false}var a=window.matchMedia,b=a("only all").matches,c=false,d=0,e=[],f=function(b){clearTimeout(d);d=setTimeout(function(){for(var b=0,c=e.length;b
');var m=a("#fullPage-nav");m.css("color",b.navigationColor);m.addClass(b.navigationPosition)}a(".section").each(function(c){var d=a(this);var e=a(this).find(".slide");var f=e.length;if(!c&&a(".section.active").length===0){a(this).addClass("active")}a(this).css("height",g+"px");if(b.paddingTop||b.paddingBottom){a(this).css("padding",b.paddingTop+" 0 "+b.paddingBottom+" 0")}if(typeof b.sectionsColor[c]!=="undefined"){a(this).css("background-color",b.sectionsColor[c])}if(typeof b.anchors[c]!=="undefined"){a(this).attr("data-anchor",b.anchors[c])}if(b.navigation){var h="";if(b.anchors.length){h=b.anchors[c]}var i=b.navigationTooltips[c];if(typeof i==="undefined"){i=""}m.append('
')}if(f>1){var j=f*100;var k=100/f;e.wrapAll('
');e.parent().wrap('
');a(this).find(".slidesContainer").css("width",j+"%");a(this).find(".slides").after('');if(b.controlArrowColor!="#fff"){a(this).find(".controlArrow.next").css("border-color","transparent transparent transparent "+b.controlArrowColor);a(this).find(".controlArrow.prev").css("border-color","transparent "+b.controlArrowColor+" transparent transparent")}if(!b.loopHorizontal){a(this).find(".controlArrow.prev").hide()}if(b.slidesNavigation){U(a(this),f)}e.each(function(c){if(!c&&d.find(".slide.active").length==0){a(this).addClass("active")}a(this).css("width",k+"%");if(b.verticalCentered){P(a(this))}})}else{if(b.verticalCentered){P(a(this))}}}).promise().done(function(){a.fn.fullpage.setAutoScrolling(b.autoScrolling);var c=a(".section.active").find(".slide.active");if(c.length&&(a(".section.active").index(".section")!=0||a(".section.active").index(".section")==0&&c.index()!=0)){var d=b.scrollingSpeed;a.fn.fullpage.setScrollingSpeed(0);D(a(".section.active").find(".slides"),c);a.fn.fullpage.setScrollingSpeed(d)}if(b.fixedElements&&b.css3){a(b.fixedElements).appendTo("body")}if(b.navigation){m.css("margin-top","-"+m.height()/2+"px");m.find("span").eq(a(".section.active").index(".section")).addClass("swiper-active-switch")}if(b.menu&&b.css3&&a(b.menu).closest(".fullpage-wrapper").length){a(b.menu).appendTo("body")}if(b.scrollOverflow){if(f.hasClass("fullpage-used")){n()}a(window).on("load",n)}else{a.isFunction(b.afterRender)&&b.afterRender.call(this)}var e=window.location.hash.replace("#","").split("/");var g=e[0];if(g.length){var h=a('[data-anchor="'+g+'"]');if(!b.animateAnchor&&h.length){ba(h.position().top);a.isFunction(b.afterLoad)&&b.afterLoad.call(this,g,h.index(".section")+1);h.addClass("active").siblings().removeClass("active")}}a(window).on("load",function(){B()})});function n(){a(".section").each(function(){var b=a(this).find(".slide");if(b.length){b.each(function(){N(a(this))})}else{N(a(this))}});a.isFunction(b.afterRender)&&b.afterRender.call(this)}var o;var p=false;a(window).on("scroll",q);function q(){if(!b.autoScrolling){var c=a(window).scrollTop();var d=a(".section").map(function(){if(a(this).offset().topMath.abs(r-t)){if(Math.abs(s-u)>a(window).width()/100*b.touchSensitivity){if(s>u){a.fn.fullpage.moveSlideRight()}else{a.fn.fullpage.moveSlideLeft()}}}else if(b.autoScrolling){if(g.find(".slides").length){i=g.find(".slide.active").find(".scrollable")}else{i=g.find(".scrollable")}if(Math.abs(r-t)>a(window).height()/100*b.touchSensitivity){if(r>t){if(i.length>0){if(K("bottom",i)){a.fn.fullpage.moveSectionDown()}else{return true}}else{a.fn.fullpage.moveSectionDown()}}else if(t>r){if(i.length>0){if(K("top",i)){a.fn.fullpage.moveSectionUp()}else{return true}}else{a.fn.fullpage.moveSectionUp()}}}}}}}function w(c,d){d=d||0;var e=a(c).parent();if(d0){if(K("bottom",e)){a.fn.fullpage.moveSectionDown()}else{return true}}else{a.fn.fullpage.moveSectionDown()}}else{if(e.length>0){if(K("top",e)){a.fn.fullpage.moveSectionUp()}else{return true}}else{a.fn.fullpage.moveSectionUp()}}}return false}}a.fn.fullpage.moveSectionUp=function(){var c=a(".section.active").prev(".section");if(!c.length&&(b.loopTop||b.continuousVertical)){c=a(".section").last()}if(c.length){A(c,null,true)}};a.fn.fullpage.moveSectionDown=function(){var c=a(".section.active").next(".section");if(!c.length&&(b.loopBottom||b.continuousVertical)){c=a(".section").first()}if(c.length>0||!c.length&&(b.loopBottom||b.continuousVertical)){A(c,null,false)}};a.fn.fullpage.moveTo=function(b,c){var d="";if(isNaN(b)){d=a('[data-anchor="'+b+'"]')}else{d=a(".section").eq(b-1)}if(typeof c!=="undefined"){S(b,c)}else if(d.length>0){A(d)}};a.fn.fullpage.moveSlideRight=function(){z("next")};a.fn.fullpage.moveSlideLeft=function(){z("prev")};function z(c){var e=a(".section.active");var f=e.find(".slides");if(!f.length||d){return}var g=f.find(".slide.active");var h=null;if(c==="prev"){h=g.prev(".slide")}else{h=g.next(".slide")}if(!h.length){if(!b.loopHorizontal)return;if(c==="prev"){h=g.siblings(":last")}else{h=g.siblings(":first")}}d=true;D(f,h)}function A(d,e,f){var g={},k;var m=d.position();if(typeof m==="undefined"){return}var n=m.top;var o=L(d);var p=d.data("anchor");var q=d.index(".section");var r=d.find(".slide.active");var s=a(".section.active");var t=s.index(".section")+1;var u=i;if(r.length){var v=r.data("anchor");var w=r.index()}if(b.autoScrolling&&b.continuousVertical&&typeof f!=="undefined"&&(!f&&o=="up"||f&&o=="down")){if(!f){a(".section.active").after(s.prevAll(".section").get().reverse())}else{a(".section.active").before(s.nextAll(".section"))}ba(a(".section.active").position().top);var x=s;m=d.position();n=m.top;o=L(d)}d.addClass("active").siblings().removeClass("active");h=true;if(typeof p!=="undefined"){V(w,v,p)}if(b.autoScrolling){g["top"]=-n;k="."+l}else{g["scrollTop"]=n;k="html, body"}var y=function(){if(!x||!x.length){return}if(f){a(".section:first").before(x)}else{a(".section:last").after(x)}ba(a(".section.active").position().top)};if(b.css3&&b.autoScrolling){a.isFunction(b.onLeave)&&!u&&b.onLeave.call(this,t,q+1,o);var z="translate3d(0px, -"+n+"px, 0px)";R(z,true);setTimeout(function(){y();a.isFunction(b.afterLoad)&&!u&&b.afterLoad.call(this,p,q+1);setTimeout(function(){h=false;a.isFunction(e)&&e.call(this)},c)},b.scrollingSpeed)}else{a.isFunction(b.onLeave)&&!u&&b.onLeave.call(this,t,q+1,o);a(k).animate(g,b.scrollingSpeed,b.easing,function(){y();a.isFunction(b.afterLoad)&&!u&&b.afterLoad.call(this,p,q+1);setTimeout(function(){h=false;a.isFunction(e)&&e.call(this)},c)})}j=p;if(b.autoScrolling){J(p);I(p,q)}}function B(){var a=window.location.hash.replace("#","").split("/");var b=a[0];var c=a[1];if(b){S(b,c)}}a(window).on("hashchange",C);function C(){if(!p){var a=window.location.hash.replace("#","").split("/");var b=a[0];var c=a[1];var e=typeof j==="undefined";var f=typeof j==="undefined"&&typeof c==="undefined"&&!d;if(b&&b!==j&&!e||f||!d&&k!=c){S(b,c)}}}a(document).keydown(function(c){if(b.keyboardScrolling&&!h){switch(c.which){case 38:case 33:a.fn.fullpage.moveSectionUp();break;case 40:case 34:a.fn.fullpage.moveSectionDown();break;case 36:a.fn.fullpage.moveTo(1);break;case 35:a.fn.fullpage.moveTo(a(".section").length);break;case 37:a.fn.fullpage.moveSlideLeft();break;case 39:a.fn.fullpage.moveSlideRight();break;default:return}}});a(document).on("click","#fullPage-nav a",function(b){b.preventDefault();var c=a(this).parent().index();A(a(".section").eq(c))});a(document).on({mouseenter:function(){var c=a(this).data("tooltip");a('
'+c+"
").hide().appendTo(a(this)).fadeIn(200)},mouseleave:function(){a(this).find(".fullPage-tooltip").fadeOut().remove()}},"#fullPage-nav span");if(b.normalScrollElements){a(document).on("mouseover",b.normalScrollElements,function(){a.fn.fullpage.setMouseWheelScrolling(false)});a(document).on("mouseout",b.normalScrollElements,function(){a.fn.fullpage.setMouseWheelScrolling(true)})}a(".section").on("click",".controlArrow",function(){if(a(this).hasClass("prev")){a.fn.fullpage.moveSlideLeft()}else{a.fn.fullpage.moveSlideRight()}});a(".section").on("click",".toSlide",function(b){b.preventDefault();var c=a(this).closest(".section").find(".slides");var d=c.find(".slide.active");var e=null;e=c.find(".slide").eq(a(this).data("index")-1);if(e.length>0){D(c,e)}});function D(c,e){var f=e.position();var g=c.find(".slidesContainer").parent();var h=e.index();var j=c.closest(".section");var k=j.index(".section");var l=j.data("anchor");var m=j.find(".fullPage-slidesNav");var n=e.data("anchor");var o=i;if(b.onSlideLeave){var p=j.find(".slide.active").index();var q=M(p,h);if(!o){a.isFunction(b.onSlideLeave)&&b.onSlideLeave.call(this,l,k+1,p,q)}}e.addClass("active").siblings().removeClass("active");if(typeof n==="undefined"){n=h}if(j.hasClass("active")){if(!b.loopHorizontal){j.find(".controlArrow.prev").toggle(h!=0);j.find(".controlArrow.next").toggle(!e.is(":last-child"))}V(h,n,l)}if(b.css3){var r="translate3d(-"+f.left+"px, 0px, 0px)";c.find(".slidesContainer").toggleClass("easing",b.scrollingSpeed>0).css(ca(r));setTimeout(function(){if(!o){a.isFunction(b.afterSlideLoad)&&b.afterSlideLoad.call(this,l,k+1,n,h)}d=false},b.scrollingSpeed,b.easing)}else{g.animate({scrollLeft:f.left},b.scrollingSpeed,b.easing,function(){if(!o){a.isFunction(b.afterSlideLoad)&&b.afterSlideLoad.call(this,l,k+1,n,h)}d=false})}m.find(".active").removeClass("active");m.find("li").eq(h).find("a").addClass("active")}if(!e){var E;a(window).resize(function(){clearTimeout(E);E=setTimeout(a.fn.fullpage.reBuild,500)})}var F="onorientationchange"in window,G=F?"orientationchange":"resize";a(window).bind(G,function(){if(e){a.fn.fullpage.reBuild()}});a.fn.fullpage.reBuild=function(){i=true;var c=a(window).width();g=a(window).height();if(b.resize){H(g,c)}a(".section").each(function(){var c=g-parseInt(a(this).css("padding-bottom"))-parseInt(a(this).css("padding-top"));if(b.verticalCentered){a(this).find(".tableCell").css("height",Q(a(this))+"px")}a(this).css("height",g+"px");if(b.scrollOverflow){var d=a(this).find(".slide");if(d.length){d.each(function(){N(a(this))})}else{N(a(this))}}var d=a(this).find(".slides");if(d.length){D(d,d.find(".slide.active"))}});var d=a(".section.active").position();var e=a(".section.active");if(e.index(".section")){A(e)}i=false;a.isFunction(b.afterResize)&&b.afterResize.call(this)};function H(b,c){var d=825;var e=b;if(b<825||c<900){if(c<900){e=c;d=900}var f=e*100/d;var g=f.toFixed(2);a("body").css("font-size",g+"%")}else{a("body").css("font-size","100%")}}function I(c,d){if(b.navigation){a("#fullPage-nav").find(".swiper-active-switch").removeClass("swiper-active-switch");if(c){a("#fullPage-nav").find('a[href="#'+c+'"]').parent().addClass("swiper-active-switch")}else{a("#fullPage-nav").find("span").eq(d).addClass("swiper-active-switch")}}}function J(c){if(b.menu){a(b.menu).find(".active").removeClass("active");a(b.menu).find('[data-menuanchor="'+c+'"]').addClass("active")}}function K(a,b){if(a==="top"){return!b.scrollTop()}else if(a==="bottom"){return b.scrollTop()+1+b.innerHeight()>=b[0].scrollHeight}}function L(b){var c=a(".section.active").index(".section");var d=b.index(".section");if(c>d){return"up"}return"down"}function M(a,b){if(a==b){return"none"}if(a>b){return"left"}return"right"}function N(a){a.css("overflow","hidden");var c=a.closest(".section");var d=a.find(".scrollable");if(d.length){var e=a.find(".scrollable").get(0).scrollHeight}else{var e=a.get(0).scrollHeight;if(b.verticalCentered){e=a.find(".tableCell").get(0).scrollHeight}}var f=g-parseInt(c.css("padding-bottom"))-parseInt(c.css("padding-top"));a.css("overflow","")}function O(a){a.find(".scrollable").children().first().unwrap().unwrap();a.find(".slimScrollBar").remove();a.find(".slimScrollRail").remove()}function P(a){a.addClass("table").wrapInner('
')}function Q(a){var c=g;if(b.paddingTop||b.paddingBottom){var d=a;if(!d.hasClass("section")){d=a.closest(".section")}var e=parseInt(d.css("padding-top"))+parseInt(d.css("padding-bottom"));c=g-e}return c}function R(a,b){f.toggleClass("easing",b);f.css(ca(a))}function S(b,c){if(typeof c==="undefined"){c=0}if(isNaN(b)){var d=a('[data-anchor="'+b+'"]')}else{var d=a(".section").eq(b-1)}if(b!==j&&!d.hasClass("active")){A(d,function(){T(d,c)})}else{T(d,c)}}function T(a,b){if(typeof b!="undefined"){var c=a.find(".slides");var d=c.find('[data-anchor="'+b+'"]');if(!d.length){d=c.find(".slide").eq(b)}if(d.length){D(c,d)}}}function U(a,c){a.append('
    ');var d=a.find(".fullPage-slidesNav");d.addClass(b.slidesNavPosition);for(var e=0;e')}d.css("margin-left","-"+d.width()/2+"px");d.find("li").first().find("a").addClass("active")}function V(a,c,d){var e="";if(b.anchors.length){if(a){if(typeof d!=="undefined"){e=d}if(typeof c==="undefined"){c=a}k=c;location.hash=e+"/"+c}else if(typeof a!=="undefined"){k=c;location.hash=d}else{location.hash=d}}}a(document).on("click",".fullPage-slidesNav a",function(b){b.preventDefault();var c=a(this).closest(".section").find(".slides");var d=c.find(".slide").eq(a(this).closest("li").index());D(c,d)});function W(){var a=document.createElement("p"),b,c={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};document.body.insertBefore(a,null);for(var d in c){if(a.style[d]!==undefined){a.style[d]="translate3d(1px,1px,1px)";b=window.getComputedStyle(a).getPropertyValue(c[d])}}document.body.removeChild(a);return b!==undefined&&b.length>0&&b!=="none"}function X(){if(document.addEventListener){document.removeEventListener("mousewheel",y,false);document.removeEventListener("wheel",y,false)}else{document.detachEvent("onmousewheel",y)}}function Y(){if(document.addEventListener){document.addEventListener("mousewheel",y,false);document.addEventListener("wheel",y,false)}else{document.attachEvent("onmousewheel",y)}}function Z(){if(e){MSPointer=_();a(document).off("touchstart "+MSPointer.down).on("touchstart "+MSPointer.down,x);a(document).off("touchmove "+MSPointer.move).on("touchmove "+MSPointer.move,v)}}function $(){if(e){MSPointer=_();a(document).off("touchstart "+MSPointer.down);a(document).off("touchmove "+MSPointer.move)}}function _(){var a;if(window.PointerEvent){a={down:"pointerdown",move:"pointermove"}}else{a={down:"MSPointerDown",move:"MSPointerMove"}}return a}function aa(a){var b=new Array;if(window.navigator.msPointerEnabled){b["y"]=a.pageY;b["x"]=a.pageX}else{b["y"]=a.touches[0].pageY;b["x"]=a.touches[0].pageX}return b}function ba(a){if(b.css3){var c="translate3d(0px, -"+a+"px, 0px)";R(c,false)}else{f.css("top",-a)}}function ca(a){return{"-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,transform:a}}a("body").on("mk-opened-nav",function(){a.fn.fullpage.setAutoScrolling(false);a.fn.fullpage.setAllowScrolling(false);a.fn.fullpage.setKeyboardScrolling(false);a(window).off("scroll",q)});a("body").on("mk-closed-nav",function(){a.fn.fullpage.setAutoScrolling(true);a.fn.fullpage.setAllowScrolling(true);a.fn.fullpage.setKeyboardScrolling(true);a(window).on("scroll",q)});a.fn.fullpage.destroy=function(c){a.fn.fullpage.setAutoScrolling(false);a.fn.fullpage.setAllowScrolling(false);a.fn.fullpage.setKeyboardScrolling(false);a(window).off("scroll",q).off("hashchange",C);a(document).off("click","#fullPage-nav a").off("mouseenter","#fullPage-nav span").off("mouseleave","#fullPage-nav span").off("click",".fullPage-slidesNav a").off("mouseover",b.normalScrollElements).off("mouseout",b.normalScrollElements);a(".section").off("click",".controlArrow").off("click",".toSlide");if(c){da()}};function da(){ba(0);a("#fullPage-nav, .fullPage-slidesNav, .controlArrow").remove();a(".section").css({height:"","background-color":"",padding:""});a(".slide").css({width:""});f.css({height:"",position:"","-ms-touch-action":""});a(".section, .slide").each(function(){O(a(this));a(this).removeClass("table active")});f.find(".easing").removeClass("easing");f.find(".tableCell, .slidesContainer, .slides").each(function(){a(this).replaceWith(this.childNodes)});a("html, body").scrollTop(0);f.addClass("fullpage-used")}}})(jQuery);(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";window._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=[].slice,e=function(a,b,d){c.call(this,a,b,d),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=e.prototype.render},f=1e-10,g=c._internals,h=g.isSelector,i=g.isArray,j=e.prototype=c.to({},.1,{}),k=[];e.version="1.12.1",j.constructor=e,j.kill()._gc=!1,e.killTweensOf=e.killDelayedCallsTo=c.killTweensOf,e.getTweensOf=c.getTweensOf,e.lagSmoothing=c.lagSmoothing,e.ticker=c.ticker,e.render=c.render,j.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),c.prototype.invalidate.call(this)},j.updateTo=function(a,b){var d,e=this.ratio;b&&this._startTime.998){var f=this._time;this.render(0,!0,!1),this._initted=!1,this.render(f,!0,!1)}else if(this._time>0){this._initted=!1,this._init();for(var g,h=1/(1-e),i=this._firstPT;i;)g=i.s+i.c,i.c*=h,i.s=g-i.c,i=i._next}return this},j.render=function(a,b,c){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var d,e,h,i,j,l,m,n,o=this._dirty?this.totalDuration():this._totalDuration,p=this._time,q=this._totalTime,r=this._cycle,s=this._duration,t=this._rawPrevTime;if(a>=o?(this._totalTime=o,this._cycle=this._repeat,this._yoyo&&0!==(1&this._cycle)?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=s,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(d=!0,e="onComplete"),0===s&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0===a||0>t||t===f)&&t!==a&&(c=!0,t>f&&(e="onReverseComplete")),this._rawPrevTime=n=!b||a||t===a?a:f)):1e-7>a?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==q||0===s&&t>0&&t!==f)&&(e="onReverseComplete",d=this._reversed),0>a?(this._active=!1,0===s&&(this._initted||!this.vars.lazy||c)&&(t>=0&&(c=!0),this._rawPrevTime=n=!b||a||t===a?a:f)):this._initted||(c=!0)):(this._totalTime=this._time=a,0!==this._repeat&&(i=s+this._repeatDelay,this._cycle=this._totalTime/i>>0,0!==this._cycle&&this._cycle===this._totalTime/i&&this._cycle--,this._time=this._totalTime-this._cycle*i,this._yoyo&&0!==(1&this._cycle)&&(this._time=s-this._time),this._time>s?this._time=s:0>this._time&&(this._time=0)),this._easeType?(j=this._time/s,l=this._easeType,m=this._easePower,(1===l||3===l&&j>=.5)&&(j=1-j),3===l&&(j*=2),1===m?j*=j:2===m?j*=j*j:3===m?j*=j*j*j:4===m&&(j*=j*j*j*j),this.ratio=1===l?1-j:2===l?j:.5>this._time/s?j/2:1-j/2):this.ratio=this._ease.getRatio(this._time/s)),p===this._time&&!c&&r===this._cycle)return q!==this._totalTime&&this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k)),void 0;if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=p,this._totalTime=q,this._rawPrevTime=t,this._cycle=r,g.lazyTweens.push(this),this._lazy=a,void 0;this._time&&!d?this.ratio=this._ease.getRatio(this._time/s):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==p&&a>=0&&(this._active=!0),0===q&&(2===this._initted&&a>0&&this._init(),this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._totalTime||0===s)&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||k))),h=this._firstPT;h;)h.f?h.t[h.p](h.c*this.ratio+h.s):h.t[h.p]=h.c*this.ratio+h.s,h=h._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._totalTime!==q||d)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||k)),this._cycle!==r&&(b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||k)),e&&(this._gc||(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||k),0===s&&this._rawPrevTime===f&&n!==f&&(this._rawPrevTime=0)))},e.to=function(a,b,c){return new e(a,b,c)},e.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new e(a,b,c)},e.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new e(a,b,d)},e.staggerTo=e.allTo=function(a,b,f,g,j,l,m){g=g||0;var n,o,p,q,r=f.delay||0,s=[],t=function(){f.onComplete&&f.onComplete.apply(f.onCompleteScope||this,arguments),j.apply(m||this,l||k)};for(i(a)||("string"==typeof a&&(a=c.selector(a)||a),h(a)&&(a=d.call(a,0))),n=a.length,p=0;n>p;p++){o={};for(q in f)o[q]=f[q];o.delay=r,p===n-1&&j&&(o.onComplete=t),s[p]=new e(a[p],b,o),r+=g}return s},e.staggerFrom=e.allFrom=function(a,b,c,d,f,g,h){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,e.staggerTo(a,b,c,d,f,g,h)},e.staggerFromTo=e.allFromTo=function(a,b,c,d,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,e.staggerTo(a,b,d,f,g,h,i)},e.delayedCall=function(a,b,c,d,f){return new e(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:f,overwrite:0})},e.set=function(a,b){return new e(a,0,b)},e.isTweening=function(a){return c.getTweensOf(a,!0).length>0};var l=function(a,b){for(var d=[],e=0,f=a._first;f;)f instanceof c?d[e++]=f:(b&&(d[e++]=f),d=d.concat(l(f,b)),e=d.length),f=f._next;return d},m=e.getAllTweens=function(b){return l(a._rootTimeline,b).concat(l(a._rootFramesTimeline,b))};e.killAll=function(a,c,d,e){null==c&&(c=!0),null==d&&(d=!0);var f,g,h,i=m(0!=e),j=i.length,k=c&&d&&e;for(h=0;j>h;h++)g=i[h],(k||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&(a?g.totalTime(g._reversed?0:g.totalDuration()):g._enabled(!1,!1))},e.killChildTweensOf=function(a,b){if(null!=a){var f,j,k,l,m,n=g.tweenLookup;if("string"==typeof a&&(a=c.selector(a)||a),h(a)&&(a=d.call(a,0)),i(a))for(l=a.length;--l>-1;)e.killChildTweensOf(a[l],b);else{f=[];for(k in n)for(j=n[k].target.parentNode;j;)j===a&&(f=f.concat(n[k].tweens)),j=j.parentNode;for(m=f.length,l=0;m>l;l++)b&&f[l].totalTime(f[l].totalDuration()),f[l]._enabled(!1,!1)}}};var n=function(a,c,d,e){c=c!==!1,d=d!==!1,e=e!==!1;for(var f,g,h=m(e),i=c&&d&&e,j=h.length;--j>-1;)g=h[j],(i||g instanceof b||(f=g.target===g.vars.onComplete)&&d||c&&!f)&&g.paused(a)};return e.pauseAll=function(a,b,c){n(!0,a,b,c)},e.resumeAll=function(a,b,c){n(!1,a,b,c)},e.globalTimeScale=function(b){var d=a._rootTimeline,e=c.ticker.time;return arguments.length?(b=b||f,d._startTime=e-(e-d._startTime)*d._timeScale/b,d=a._rootFramesTimeline,e=c.ticker.frame,d._startTime=e-(e-d._startTime)*d._timeScale/b,d._timeScale=a._rootTimeline._timeScale=b,b):d._timeScale},j.progress=function(a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},j.totalProgress=function(a){return arguments.length?this.totalTime(this.totalDuration()*a,!1):this._totalTime/this.totalDuration()},j.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},j.duration=function(b){return arguments.length?a.prototype.duration.call(this,b):this._duration},j.totalDuration=function(a){return arguments.length?-1===this._repeat?this:this.duration((a-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},j.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},j.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},j.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},e},!0),window._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(a,b,c){var d=function(a){b.call(this,a),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var c,d,e=this.vars;for(d in e)c=e[d],g(c)&&-1!==c.join("").indexOf("{self}")&&(e[d]=this._swapSelfInParams(c));g(e.tweens)&&this.add(e.tweens,0,e.align,e.stagger)},e=1e-10,f=c._internals.isSelector,g=c._internals.isArray,h=[],i=window._gsDefine.globals,j=function(a){var b,c={};for(b in a)c[b]=a[b];return c},k=function(a,b,c,d){a._timeline.pause(a._startTime),b&&b.apply(d||a._timeline,c||h)},l=h.slice,m=d.prototype=new b;return d.version="1.12.1",m.constructor=d,m.kill()._gc=!1,m.to=function(a,b,d,e){var f=d.repeat&&i.TweenMax||c;return b?this.add(new f(a,b,d),e):this.set(a,d,e)},m.from=function(a,b,d,e){return this.add((d.repeat&&i.TweenMax||c).from(a,b,d),e)},m.fromTo=function(a,b,d,e,f){var g=e.repeat&&i.TweenMax||c;return b?this.add(g.fromTo(a,b,d,e),f):this.set(a,e,f)},m.staggerTo=function(a,b,e,g,h,i,k,m){var n,o=new d({onComplete:i,onCompleteParams:k,onCompleteScope:m,smoothChildTiming:this.smoothChildTiming });for("string"==typeof a&&(a=c.selector(a)||a),f(a)&&(a=l.call(a,0)),g=g||0,n=0;a.length>n;n++)e.startAt&&(e.startAt=j(e.startAt)),o.to(a[n],b,j(e),n*g);return this.add(o,h)},m.staggerFrom=function(a,b,c,d,e,f,g,h){return c.immediateRender=0!=c.immediateRender,c.runBackwards=!0,this.staggerTo(a,b,c,d,e,f,g,h)},m.staggerFromTo=function(a,b,c,d,e,f,g,h,i){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,this.staggerTo(a,b,d,e,f,g,h,i)},m.call=function(a,b,d,e){return this.add(c.delayedCall(0,a,b,d),e)},m.set=function(a,b,d){return d=this._parseTimeOrLabel(d,0,!0),null==b.immediateRender&&(b.immediateRender=d===this._time&&!this._paused),this.add(new c(a,0,b),d)},d.exportRoot=function(a,b){a=a||{},null==a.smoothChildTiming&&(a.smoothChildTiming=!0);var e,f,g=new d(a),h=g._timeline;for(null==b&&(b=!0),h._remove(g,!0),g._startTime=0,g._rawPrevTime=g._time=g._totalTime=h._time,e=h._first;e;)f=e._next,b&&e instanceof c&&e.target===e.vars.onComplete||g.add(e,e._startTime-e._delay),e=f;return h.add(g,0),g},m.add=function(e,f,h,i){var j,k,l,m,n,o;if("number"!=typeof f&&(f=this._parseTimeOrLabel(f,0,!0,e)),!(e instanceof a)){if(e instanceof Array||e&&e.push&&g(e)){for(h=h||"normal",i=i||0,j=f,k=e.length,l=0;k>l;l++)g(m=e[l])&&(m=new d({tweens:m})),this.add(m,j),"string"!=typeof m&&"function"!=typeof m&&("sequence"===h?j=m._startTime+m.totalDuration()/m._timeScale:"start"===h&&(m._startTime-=m.delay())),j+=i;return this._uncache(!0)}if("string"==typeof e)return this.addLabel(e,f);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=c.delayedCall(0,e)}if(b.prototype.add.call(this,e,f),(this._gc||this._time===this._duration)&&!this._paused&&this._duratione._startTime;n._timeline;)o&&n._timeline.smoothChildTiming?n.totalTime(n._totalTime,!0):n._gc&&n._enabled(!0,!1),n=n._timeline;return this},m.remove=function(b){if(b instanceof a)return this._remove(b,!1);if(b instanceof Array||b&&b.push&&g(b)){for(var c=b.length;--c>-1;)this.remove(b[c]);return this}return"string"==typeof b?this.removeLabel(b):this.kill(null,b)},m._remove=function(a,c){b.prototype._remove.call(this,a,c);var d=this._last;return d?this._time>d._startTime+d._totalDuration/d._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},m.append=function(a,b){return this.add(a,this._parseTimeOrLabel(null,b,!0,a))},m.insert=m.insertMultiple=function(a,b,c,d){return this.add(a,b||0,c,d)},m.appendMultiple=function(a,b,c,d){return this.add(a,this._parseTimeOrLabel(null,b,!0,a),c,d)},m.addLabel=function(a,b){return this._labels[a]=this._parseTimeOrLabel(b),this},m.addPause=function(a,b,c,d){return this.call(k,["{self}",b,c,d],this,a)},m.removeLabel=function(a){return delete this._labels[a],this},m.getLabelTime=function(a){return null!=this._labels[a]?this._labels[a]:-1},m._parseTimeOrLabel=function(b,c,d,e){var f;if(e instanceof a&&e.timeline===this)this.remove(e);else if(e&&(e instanceof Array||e.push&&g(e)))for(f=e.length;--f>-1;)e[f]instanceof a&&e[f].timeline===this&&this.remove(e[f]);if("string"==typeof c)return this._parseTimeOrLabel(c,d&&"number"==typeof b&&null==this._labels[c]?b-this.duration():0,d);if(c=c||0,"string"!=typeof b||!isNaN(b)&&null==this._labels[b])null==b&&(b=this.duration());else{if(f=b.indexOf("="),-1===f)return null==this._labels[b]?d?this._labels[b]=this.duration()+c:c:this._labels[b]+c;c=parseInt(b.charAt(f-1)+"1",10)*Number(b.substr(f+1)),b=f>1?this._parseTimeOrLabel(b.substr(0,f-1),0,d):this.duration()}return Number(b)+c},m.seek=function(a,b){return this.totalTime("number"==typeof a?a:this._parseTimeOrLabel(a),b!==!1)},m.stop=function(){return this.paused(!0)},m.gotoAndPlay=function(a,b){return this.play(a,b)},m.gotoAndStop=function(a,b){return this.pause(a,b)},m.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,f,g,i,j,k=this._dirty?this.totalDuration():this._totalDuration,l=this._time,m=this._startTime,n=this._timeScale,o=this._paused;if(a>=k?(this._totalTime=this._time=k,this._reversed||this._hasPausedChild()||(f=!0,i="onComplete",0===this._duration&&(0===a||0>this._rawPrevTime||this._rawPrevTime===e)&&this._rawPrevTime!==a&&this._first&&(j=!0,this._rawPrevTime>e&&(i="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=k+1e-4):1e-7>a?(this._totalTime=this._time=0,(0!==l||0===this._duration&&this._rawPrevTime!==e&&(this._rawPrevTime>0||0>a&&this._rawPrevTime>=0))&&(i="onReverseComplete",f=this._reversed),0>a?(this._active=!1,0===this._duration&&this._rawPrevTime>=0&&this._first&&(j=!0),this._rawPrevTime=a):(this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,a=0,this._initted||(j=!0))):this._totalTime=this._time=this._rawPrevTime=a,this._time!==l&&this._first||c||j){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==l&&a>0&&(this._active=!0),0===l&&this.vars.onStart&&0!==this._time&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||h)),this._time>=l)for(d=this._first;d&&(g=d._next,!this._paused||o);)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;else for(d=this._last;d&&(g=d._prev,!this._paused||o);)(d._active||l>=d._startTime&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=g;this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||h)),i&&(this._gc||(m===this._startTime||n!==this._timeScale)&&(0===this._time||k>=this.totalDuration())&&(f&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||h)))}},m._hasPausedChild=function(){for(var a=this._first;a;){if(a._paused||a instanceof d&&a._hasPausedChild())return!0;a=a._next}return!1},m.getChildren=function(a,b,d,e){e=e||-9999999999;for(var f=[],g=this._first,h=0;g;)e>g._startTime||(g instanceof c?b!==!1&&(f[h++]=g):(d!==!1&&(f[h++]=g),a!==!1&&(f=f.concat(g.getChildren(!0,b,d)),h=f.length))),g=g._next;return f},m.getTweensOf=function(a,b){var d,e,f=this._gc,g=[],h=0;for(f&&this._enabled(!0,!0),d=c.getTweensOf(a),e=d.length;--e>-1;)(d[e].timeline===this||b&&this._contains(d[e]))&&(g[h++]=d[e]);return f&&this._enabled(!1,!0),g},m._contains=function(a){for(var b=a.timeline;b;){if(b===this)return!0;b=b.timeline}return!1},m.shiftChildren=function(a,b,c){c=c||0;for(var d,e=this._first,f=this._labels;e;)e._startTime>=c&&(e._startTime+=a),e=e._next;if(b)for(d in f)f[d]>=c&&(f[d]+=a);return this._uncache(!0)},m._kill=function(a,b){if(!a&&!b)return this._enabled(!1,!1);for(var c=b?this.getTweensOf(b):this.getChildren(!0,!0,!1),d=c.length,e=!1;--d>-1;)c[d]._kill(a,b)&&(e=!0);return e},m.clear=function(a){var b=this.getChildren(!1,!0,!0),c=b.length;for(this._time=this._totalTime=0;--c>-1;)b[c]._enabled(!1,!1);return a!==!1&&(this._labels={}),this._uncache(!0)},m.invalidate=function(){for(var a=this._first;a;)a.invalidate(),a=a._next;return this},m._enabled=function(a,c){if(a===this._gc)for(var d=this._first;d;)d._enabled(a,!0),d=d._next;return b.prototype._enabled.call(this,a,c)},m.duration=function(a){return arguments.length?(0!==this.duration()&&0!==a&&this.timeScale(this._duration/a),this):(this._dirty&&this.totalDuration(),this._duration)},m.totalDuration=function(a){if(!arguments.length){if(this._dirty){for(var b,c,d=0,e=this._last,f=999999999999;e;)b=e._prev,e._dirty&&e.totalDuration(),e._startTime>f&&this._sortChildren&&!e._paused?this.add(e,e._startTime-e._delay):f=e._startTime,0>e._startTime&&!e._paused&&(d-=e._startTime,this._timeline.smoothChildTiming&&(this._startTime+=e._startTime/this._timeScale),this.shiftChildren(-e._startTime,!1,-9999999999),f=0),c=e._startTime+e._totalDuration/e._timeScale,c>d&&(d=c),e=b;this._duration=this._totalDuration=d,this._dirty=!1}return this._totalDuration}return 0!==this.totalDuration()&&0!==a&&this.timeScale(this._totalDuration/a),this},m.usesFrames=function(){for(var b=this._timeline;b._timeline;)b=b._timeline;return b===a._rootFramesTimeline},m.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},d},!0),window._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(a,b,c){var d=function(b){a.call(this,b),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,f=[],g=new c(null,null,1,0),h=d.prototype=new a;return h.constructor=d,h.kill()._gc=!1,d.version="1.12.1",h.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),a.prototype.invalidate.call(this)},h.addCallback=function(a,c,d,e){return this.add(b.delayedCall(0,a,d,e),c)},h.removeCallback=function(a,b){if(a)if(null==b)this._kill(null,a);else for(var c=this.getTweensOf(a,!1),d=c.length,e=this._parseTimeOrLabel(b);--d>-1;)c[d]._startTime===e&&c[d]._enabled(!1,!1);return this},h.tweenTo=function(a,c){c=c||{};var d,e,h,i={ease:g,overwrite:c.delay?2:1,useFrames:this.usesFrames(),immediateRender:!1};for(e in c)i[e]=c[e];return i.time=this._parseTimeOrLabel(a),d=Math.abs(Number(i.time)-this._time)/this._timeScale||.001,h=new b(this,d,i),i.onStart=function(){h.target.paused(!0),h.vars.time!==h.target.time()&&d===h.duration()&&h.duration(Math.abs(h.vars.time-h.target.time())/h.target._timeScale),c.onStart&&c.onStart.apply(c.onStartScope||h,c.onStartParams||f)},h},h.tweenFromTo=function(a,b,c){c=c||{},a=this._parseTimeOrLabel(a),c.startAt={onComplete:this.seek,onCompleteParams:[a],onCompleteScope:this},c.immediateRender=c.immediateRender!==!1;var d=this.tweenTo(b,c);return d.duration(Math.abs(d.vars.time-a)/this._timeScale||.001)},h.render=function(a,b,c){this._gc&&this._enabled(!0,!1);var d,g,h,i,j,k,l=this._dirty?this.totalDuration():this._totalDuration,m=this._duration,n=this._time,o=this._totalTime,p=this._startTime,q=this._timeScale,r=this._rawPrevTime,s=this._paused,t=this._cycle;if(a>=l?(this._locked||(this._totalTime=l,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(g=!0,i="onComplete",0===this._duration&&(0===a||0>r||r===e)&&r!==a&&this._first&&(j=!0,r>e&&(i="onReverseComplete"))),this._rawPrevTime=this._duration||!b||a||this._rawPrevTime===a?a:e,this._yoyo&&0!==(1&this._cycle)?this._time=a=0:(this._time=m,a=m+1e-4)):1e-7>a?(this._locked||(this._totalTime=this._cycle=0),this._time=0,(0!==n||0===m&&r!==e&&(r>0||0>a&&r>=0)&&!this._locked)&&(i="onReverseComplete",g=this._reversed),0>a?(this._active=!1,0===m&&r>=0&&this._first&&(j=!0),this._rawPrevTime=a):(this._rawPrevTime=m||!b||a||this._rawPrevTime===a?a:e,a=0,this._initted||(j=!0))):(0===m&&0>r&&(j=!0),this._time=this._rawPrevTime=a,this._locked||(this._totalTime=a,0!==this._repeat&&(k=m+this._repeatDelay,this._cycle=this._totalTime/k>>0,0!==this._cycle&&this._cycle===this._totalTime/k&&this._cycle--,this._time=this._totalTime-this._cycle*k,this._yoyo&&0!==(1&this._cycle)&&(this._time=m-this._time),this._time>m?(this._time=m,a=m+1e-4):0>this._time?this._time=a=0:a=this._time))),this._cycle!==t&&!this._locked){var u=this._yoyo&&0!==(1&t),v=u===(this._yoyo&&0!==(1&this._cycle)),w=this._totalTime,x=this._cycle,y=this._rawPrevTime,z=this._time;if(this._totalTime=t*m,t>this._cycle?u=!u:this._totalTime+=m,this._time=n,this._rawPrevTime=0===m?r-1e-4:r,this._cycle=t,this._locked=!0,n=u?0:m,this.render(n,b,0===m),b||this._gc||this.vars.onRepeat&&this.vars.onRepeat.apply(this.vars.onRepeatScope||this,this.vars.onRepeatParams||f),v&&(n=u?m+1e-4:-1e-4,this.render(n,!0,!1)),this._locked=!1,this._paused&&!s)return;this._time=z,this._totalTime=w,this._cycle=x,this._rawPrevTime=y}if(!(this._time!==n&&this._first||c||j))return o!==this._totalTime&&this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),void 0;if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==o&&a>0&&(this._active=!0),0===o&&this.vars.onStart&&0!==this._totalTime&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||f)),this._time>=n)for(d=this._first;d&&(h=d._next,!this._paused||s);)(d._active||d._startTime<=this._time&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=h;else for(d=this._last;d&&(h=d._prev,!this._paused||s);)(d._active||n>=d._startTime&&!d._paused&&!d._gc)&&(d._reversed?d.render((d._dirty?d.totalDuration():d._totalDuration)-(a-d._startTime)*d._timeScale,b,c):d.render((a-d._startTime)*d._timeScale,b,c)),d=h;this._onUpdate&&(b||this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||f)),i&&(this._locked||this._gc||(p===this._startTime||q!==this._timeScale)&&(0===this._time||l>=this.totalDuration())&&(g&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[i]&&this.vars[i].apply(this.vars[i+"Scope"]||this,this.vars[i+"Params"]||f)))},h.getActive=function(a,b,c){null==a&&(a=!0),null==b&&(b=!0),null==c&&(c=!1);var d,e,f=[],g=this.getChildren(a,b,c),h=0,i=g.length;for(d=0;i>d;d++)e=g[d],e.isActive()&&(f[h++]=e);return f},h.getLabelAfter=function(a){a||0!==a&&(a=this._time);var b,c=this.getLabelsArray(),d=c.length;for(b=0;d>b;b++)if(c[b].time>a)return c[b].name;return null},h.getLabelBefore=function(a){null==a&&(a=this._time);for(var b=this.getLabelsArray(),c=b.length;--c>-1;)if(a>b[c].time)return b[c].name;return null},h.getLabelsArray=function(){var a,b=[],c=0;for(a in this._labels)b[c++]={time:this._labels[a],name:a};return b.sort(function(a,b){return a.time-b.time}),b},h.progress=function(a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!==(1&this._cycle)?1-a:a)+this._cycle*(this._duration+this._repeatDelay),!1):this._time/this.duration()},h.totalProgress=function(a){return arguments.length?this.totalTime(this.totalDuration()*a,!1):this._totalTime/this.totalDuration()},h.totalDuration=function(b){return arguments.length?-1===this._repeat?this:this.duration((b-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(a.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},h.time=function(a,b){return arguments.length?(this._dirty&&this.totalDuration(),a>this._duration&&(a=this._duration),this._yoyo&&0!==(1&this._cycle)?a=this._duration-a+this._cycle*(this._duration+this._repeatDelay):0!==this._repeat&&(a+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(a,b)):this._time},h.repeat=function(a){return arguments.length?(this._repeat=a,this._uncache(!0)):this._repeat},h.repeatDelay=function(a){return arguments.length?(this._repeatDelay=a,this._uncache(!0)):this._repeatDelay},h.yoyo=function(a){return arguments.length?(this._yoyo=a,this):this._yoyo},h.currentLabel=function(a){return arguments.length?this.seek(a,!0):this.getLabelBefore(this._time+1e-8)},d},!0),function(){var a=180/Math.PI,b=[],c=[],d=[],e={},f=function(a,b,c,d){this.a=a,this.b=b,this.c=c,this.d=d,this.da=d-a,this.ca=c-a,this.ba=b-a},g=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",h=function(a,b,c,d){var e={a:a},f={},g={},h={c:d},i=(a+b)/2,j=(b+c)/2,k=(c+d)/2,l=(i+j)/2,m=(j+k)/2,n=(m-l)/8;return e.b=i+(a-i)/4,f.b=l+n,e.c=f.a=(e.b+f.b)/2,f.c=g.a=(l+m)/2,g.b=m-n,h.b=k+(d-k)/4,g.c=h.a=(g.b+h.b)/2,[e,f,g,h]},i=function(a,e,f,g,i){var j,k,l,m,n,o,p,q,r,s,t,u,v,w=a.length-1,x=0,y=a[0].a;for(j=0;w>j;j++)n=a[x],k=n.a,l=n.d,m=a[x+1].d,i?(t=b[j],u=c[j],v=.25*(u+t)*e/(g?.5:d[j]||.5),o=l-(l-k)*(g?.5*e:0!==t?v/t:0),p=l+(m-l)*(g?.5*e:0!==u?v/u:0),q=l-(o+((p-o)*(3*t/(t+u)+.5)/4||0))):(o=l-.5*(l-k)*e,p=l+.5*(m-l)*e,q=l-(o+p)/2),o+=q,p+=q,n.c=r=o,n.b=0!==j?y:y=n.a+.6*(n.c-n.a),n.da=l-k,n.ca=r-k,n.ba=y-k,f?(s=h(k,y,r,l),a.splice(x,1,s[0],s[1],s[2],s[3]),x+=4):x++,y=p;n=a[x],n.b=y,n.c=y+.4*(n.d-y),n.da=n.d-n.a,n.ca=n.c-n.a,n.ba=y-n.a,f&&(s=h(n.a,y,n.c,n.d),a.splice(x,1,s[0],s[1],s[2],s[3]))},j=function(a,d,e,g){var h,i,j,k,l,m,n=[];if(g)for(a=[g].concat(a),i=a.length;--i>-1;)"string"==typeof(m=a[i][d])&&"="===m.charAt(1)&&(a[i][d]=g[d]+Number(m.charAt(0)+m.substr(2)));if(h=a.length-2,0>h)return n[0]=new f(a[0][d],0,0,a[-1>h?0:1][d]),n;for(i=0;h>i;i++)j=a[i][d],k=a[i+1][d],n[i]=new f(j,0,0,k),e&&(l=a[i+2][d],b[i]=(b[i]||0)+(k-j)*(k-j),c[i]=(c[i]||0)+(l-k)*(l-k));return n[i]=new f(a[i][d],0,0,a[i+1][d]),n},k=function(a,f,h,k,l,m){var n,o,p,q,r,s,t,u,v={},w=[],x=m||a[0];l="string"==typeof l?","+l+",":g,null==f&&(f=1);for(o in a[0])w.push(o);if(a.length>1){for(u=a[a.length-1],t=!0,n=w.length;--n>-1;)if(o=w[n],Math.abs(x[o]-u[o])>.05){t=!1;break}t&&(a=a.concat(),m&&a.unshift(m),a.push(a[1]),m=a[a.length-3])}for(b.length=c.length=d.length=0,n=w.length;--n>-1;)o=w[n],e[o]=-1!==l.indexOf(","+o+","),v[o]=j(a,o,e[o],m);for(n=b.length;--n>-1;)b[n]=Math.sqrt(b[n]),c[n]=Math.sqrt(c[n]);if(!k){for(n=w.length;--n>-1;)if(e[o])for(p=v[w[n]],s=p.length-1,q=0;s>q;q++)r=p[q+1].da/c[q]+p[q].da/b[q],d[q]=(d[q]||0)+r*r;for(n=d.length;--n>-1;)d[n]=Math.sqrt(d[n])}for(n=w.length,q=h?4:1;--n>-1;)o=w[n],p=v[o],i(p,f,h,k,e[o]),t&&(p.splice(0,q),p.splice(p.length-q,q));return v},l=function(a,b,c){b=b||"soft";var d,e,g,h,i,j,k,l,m,n,o,p={},q="cubic"===b?3:2,r="soft"===b,s=[];if(r&&c&&(a=[c].concat(a)),null==a||q+1>a.length)throw"invalid Bezier data";for(m in a[0])s.push(m);for(j=s.length;--j>-1;){for(m=s[j],p[m]=i=[],n=0,l=a.length,k=0;l>k;k++)d=null==c?a[k][m]:"string"==typeof(o=a[k][m])&&"="===o.charAt(1)?c[m]+Number(o.charAt(0)+o.substr(2)):Number(o),r&&k>1&&l-1>k&&(i[n++]=(d+i[n-2])/2),i[n++]=d;for(l=n-q+1,n=0,k=0;l>k;k+=q)d=i[k],e=i[k+1],g=i[k+2],h=2===q?0:i[k+3],i[n++]=o=3===q?new f(d,e,g,h):new f(d,(2*e+d)/3,(2*e+g)/3,g);i.length=n}return p},m=function(a,b,c){for(var d,e,f,g,h,i,j,k,l,m,n,o=1/c,p=a.length;--p>-1;)for(m=a[p],f=m.a,g=m.d-f,h=m.c-f,i=m.b-f,d=e=0,k=1;c>=k;k++)j=o*k,l=1-j,d=e-(e=(j*j*g+3*l*(j*h+l*i))*j),n=p*c+k-1,b[n]=(b[n]||0)+d*d},n=function(a,b){b=b>>0||6;var c,d,e,f,g=[],h=[],i=0,j=0,k=b-1,l=[],n=[];for(c in a)m(a[c],g,b);for(e=g.length,d=0;e>d;d++)i+=Math.sqrt(g[d]),f=d%b,n[f]=i,f===k&&(j+=i,f=d/b>>0,l[f]=n,h[f]=j,i=0,n=[]);return{length:j,lengths:h,segments:l}},o=window._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.2",API:2,global:!0,init:function(a,b,c){this._target=a,b instanceof Array&&(b={values:b}),this._func={},this._round={},this._props=[],this._timeRes=null==b.timeResolution?6:parseInt(b.timeResolution,10);var d,e,f,g,h,i=b.values||[],j={},m=i[0],o=b.autoRotate||c.vars.orientToBezier;this._autoRotate=o?o instanceof Array?o:[["x","y","rotation",o===!0?0:Number(o)||0]]:null;for(d in m)this._props.push(d);for(f=this._props.length;--f>-1;)d=this._props[f],this._overwriteProps.push(d),e=this._func[d]="function"==typeof a[d],j[d]=e?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]():parseFloat(a[d]),h||j[d]!==i[0][d]&&(h=j);if(this._beziers="cubic"!==b.type&&"quadratic"!==b.type&&"soft"!==b.type?k(i,isNaN(b.curviness)?1:b.curviness,!1,"thruBasic"===b.type,b.correlate,h):l(i,b.type,j),this._segCount=this._beziers[d].length,this._timeRes){var p=n(this._beziers,this._timeRes);this._length=p.length,this._lengths=p.lengths,this._segments=p.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(o=this._autoRotate)for(this._initialRotations=[],o[0]instanceof Array||(this._autoRotate=o=[o]),f=o.length;--f>-1;){for(g=0;3>g;g++)d=o[f][g],this._func[d]="function"==typeof a[d]?a[d.indexOf("set")||"function"!=typeof a["get"+d.substr(3)]?d:"get"+d.substr(3)]:!1;d=o[f][2],this._initialRotations[f]=this._func[d]?this._func[d].call(this._target):this._target[d]}return this._startRatio=c.vars.runBackwards?1:0,!0},set:function(b){var c,d,e,f,g,h,i,j,k,l,m=this._segCount,n=this._func,o=this._target,p=b!==this._startRatio;if(this._timeRes){if(k=this._lengths,l=this._curSeg,b*=this._length,e=this._li,b>this._l2&&m-1>e){for(j=m-1;j>e&&b>=(this._l2=k[++e]););this._l1=k[e-1],this._li=e,this._curSeg=l=this._segments[e],this._s2=l[this._s1=this._si=0]}else if(this._l1>b&&e>0){for(;e>0&&(this._l1=k[--e])>=b;);0===e&&this._l1>b?this._l1=0:e++,this._l2=k[e],this._li=e,this._curSeg=l=this._segments[e],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(c=e,b-=this._l1,e=this._si,b>this._s2&&l.length-1>e){for(j=l.length-1;j>e&&b>=(this._s2=l[++e]););this._s1=l[e-1],this._si=e}else if(this._s1>b&&e>0){for(;e>0&&(this._s1=l[--e])>=b;);0===e&&this._s1>b?this._s1=0:e++,this._s2=l[e],this._si=e}h=(e+(b-this._s1)/(this._s2-this._s1))*this._prec}else c=0>b?0:b>=1?m-1:m*b>>0,h=(b-c*(1/m))*m;for(d=1-h,e=this._props.length;--e>-1;)f=this._props[e],g=this._beziers[f][c],i=(h*h*g.da+3*d*(h*g.ca+d*g.ba))*h+g.a,this._round[f]&&(i=Math.round(i)),n[f]?o[f](i):o[f]=i;if(this._autoRotate){var q,r,s,t,u,v,w,x=this._autoRotate;for(e=x.length;--e>-1;)f=x[e][2],v=x[e][3]||0,w=x[e][4]===!0?1:a,g=this._beziers[x[e][0]],q=this._beziers[x[e][1]],g&&q&&(g=g[c],q=q[c],r=g.a+(g.b-g.a)*h,t=g.b+(g.c-g.b)*h,r+=(t-r)*h,t+=(g.c+(g.d-g.c)*h-t)*h,s=q.a+(q.b-q.a)*h,u=q.b+(q.c-q.b)*h,s+=(u-s)*h,u+=(q.c+(q.d-q.c)*h-u)*h,i=p?Math.atan2(u-s,t-r)*w+v:this._initialRotations[e],n[f]?o[f](i):o[f]=i)}}}),p=o.prototype;o.bezierThrough=k,o.cubicToQuadratic=h,o._autoCSS=!0,o.quadraticToCubic=function(a,b,c){return new f(a,(2*b+a)/3,(2*b+c)/3,c)},o._cssRegister=function(){var a=window._gsDefine.globals.CSSPlugin;if(a){var b=a._internals,c=b._parseToProxy,d=b._setPluginRatio,e=b.CSSPropTween;b._registerComplexSpecialProp("bezier",{parser:function(a,b,f,g,h,i){b instanceof Array&&(b={values:b}),i=new o;var j,k,l,m=b.values,n=m.length-1,p=[],q={};if(0>n)return h;for(j=0;n>=j;j++)l=c(a,m[j],g,h,i,n!==j),p[j]=l.end;for(k in b)q[k]=b[k];return q.values=p,h=new e(a,"bezier",0,0,l.pt,2),h.data=l,h.plugin=i,h.setRatio=d,0===q.autoRotate&&(q.autoRotate=!0),!q.autoRotate||q.autoRotate instanceof Array||(j=q.autoRotate===!0?0:Number(q.autoRotate),q.autoRotate=null!=l.end.left?[["left","top","rotation",j,!1]]:null!=l.end.x?[["x","y","rotation",j,!1]]:!1),q.autoRotate&&(g._transform||g._enableTransforms(!1),l.autoRotate=g._target._gsTransform),i._onInitTween(l.proxy,q,g._tween),h}})}},p._roundProps=function(a,b){for(var c=this._overwriteProps,d=c.length;--d>-1;)(a[c[d]]||a.bezier||a.bezierThrough)&&(this._round[c[d]]=b)},p._kill=function(a){var b,c,d=this._props;for(b in this._beziers)if(b in a)for(delete this._beziers[b],delete this._func[b],c=d.length;--c>-1;)d[c]===b&&d.splice(c,1);return this._super._kill.call(this,a)}}(),window._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(a,b){var c,d,e,f,g=function(){a.call(this,"css"),this._overwriteProps.length=0,this.setRatio=g.prototype.setRatio},h={},i=g.prototype=new a("css");i.constructor=g,g.version="1.12.1",g.API=2,g.defaultTransformPerspective=0,g.defaultSkewType="compensated",i="px",g.suffixMap={top:i,right:i,bottom:i,left:i,width:i,height:i,fontSize:i,padding:i,margin:i,perspective:i,lineHeight:""};var j,k,l,m,n,o,p=/(?:\d|\-\d|\.\d|\-\.\d)+/g,q=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,r=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,s=/[^\d\-\.]/g,t=/(?:\d|\-|\+|=|#|\.)*/g,u=/opacity *=*([^)]*)/i,v=/opacity:([^;]*)/i,w=/alpha\(opacity *=.+?\)/i,x=/^(rgb|hsl)/,y=/([A-Z])/g,z=/-([a-z])/gi,A=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,B=function(a,b){return b.toUpperCase()},C=/(?:Left|Right|Width)/i,D=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,E=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,F=/,(?=[^\)]*(?:\(|$))/gi,G=Math.PI/180,H=180/Math.PI,I={},J=document,K=J.createElement("div"),L=J.createElement("img"),M=g._internals={_specialProps:h},N=navigator.userAgent,O=function(){var a,b=N.indexOf("Android"),c=J.createElement("div");return l=-1!==N.indexOf("Safari")&&-1===N.indexOf("Chrome")&&(-1===b||Number(N.substr(b+8,1))>3),n=l&&6>Number(N.substr(N.indexOf("Version/")+8,1)),m=-1!==N.indexOf("Firefox"),/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(N)&&(o=parseFloat(RegExp.$1)),c.innerHTML="a",a=c.getElementsByTagName("a")[0],a?/^0.55/.test(a.style.opacity):!1}(),P=function(a){return u.test("string"==typeof a?a:(a.currentStyle?a.currentStyle.filter:a.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Q=function(a){window.console&&console.log(a)},R="",S="",T=function(a,b){b=b||K;var c,d,e=b.style;if(void 0!==e[a])return a;for(a=a.charAt(0).toUpperCase()+a.substr(1),c=["O","Moz","ms","Ms","Webkit"],d=5;--d>-1&&void 0===e[c[d]+a];);return d>=0?(S=3===d?"ms":c[d],R="-"+S.toLowerCase()+"-",S+a):null},U=J.defaultView?J.defaultView.getComputedStyle:function(){},V=g.getStyle=function(a,b,c,d,e){var f;return O||"opacity"!==b?(!d&&a.style[b]?f=a.style[b]:(c=c||U(a))?f=c[b]||c.getPropertyValue(b)||c.getPropertyValue(b.replace(y,"-$1").toLowerCase()):a.currentStyle&&(f=a.currentStyle[b]),null==e||f&&"none"!==f&&"auto"!==f&&"auto auto"!==f?f:e):P(a)},W=M.convertToPixels=function(a,c,d,e,f){if("px"===e||!e)return d;if("auto"===e||!d)return 0;var h,i,j,k=C.test(c),l=a,m=K.style,n=0>d;if(n&&(d=-d),"%"===e&&-1!==c.indexOf("border"))h=d/100*(k?a.clientWidth:a.clientHeight);else{if(m.cssText="border:0 solid red;position:"+V(a,"position")+";line-height:0;","%"!==e&&l.appendChild)m[k?"borderLeftWidth":"borderTopWidth"]=d+e;else{if(l=a.parentNode||J.body,i=l._gsCache,j=b.ticker.frame,i&&k&&i.time===j)return i.width*d/100;m[k?"width":"height"]=d+e}l.appendChild(K),h=parseFloat(K[k?"offsetWidth":"offsetHeight"]),l.removeChild(K),k&&"%"===e&&g.cacheWidths!==!1&&(i=l._gsCache=l._gsCache||{},i.time=j,i.width=100*(h/d)),0!==h||f||(h=W(a,c,d,e,!0))}return n?-h:h},X=M.calculateOffset=function(a,b,c){if("absolute"!==V(a,"position",c))return 0;var d="left"===b?"Left":"Top",e=V(a,"margin"+d,c);return a["offset"+d]-(W(a,b,parseFloat(e),e.replace(t,""))||0)},Y=function(a,b){var c,d,e={};if(b=b||U(a,null))if(c=b.length)for(;--c>-1;)e[b[c].replace(z,B)]=b.getPropertyValue(b[c]);else for(c in b)e[c]=b[c];else if(b=a.currentStyle||a.style)for(c in b)"string"==typeof c&&void 0===e[c]&&(e[c.replace(z,B)]=b[c]);return O||(e.opacity=P(a)),d=ya(a,b,!1),e.rotation=d.rotation,e.skewX=d.skewX,e.scaleX=d.scaleX,e.scaleY=d.scaleY,e.x=d.x,e.y=d.y,wa&&(e.z=d.z,e.rotationX=d.rotationX,e.rotationY=d.rotationY,e.scaleZ=d.scaleZ),e.filters&&delete e.filters,e},Z=function(a,b,c,d,e){var f,g,h,i={},j=a.style;for(g in c)"cssText"!==g&&"length"!==g&&isNaN(g)&&(b[g]!==(f=c[g])||e&&e[g])&&-1===g.indexOf("Origin")&&("number"==typeof f||"string"==typeof f)&&(i[g]="auto"!==f||"left"!==g&&"top"!==g?""!==f&&"auto"!==f&&"none"!==f||"string"!=typeof b[g]||""===b[g].replace(s,"")?f:0:X(a,g),void 0!==j[g]&&(h=new la(j,g,j[g],h)));if(d)for(g in d)"className"!==g&&(i[g]=d[g]);return{difs:i,firstMPT:h}},$={width:["Left","Right"],height:["Top","Bottom"]},_=["marginLeft","marginRight","marginTop","marginBottom"],aa=function(a,b,c){var d=parseFloat("width"===b?a.offsetWidth:a.offsetHeight),e=$[b],f=e.length;for(c=c||U(a,null);--f>-1;)d-=parseFloat(V(a,"padding"+e[f],c,!0))||0,d-=parseFloat(V(a,"border"+e[f]+"Width",c,!0))||0;return d},ba=function(a,b){(null==a||""===a||"auto"===a||"auto auto"===a)&&(a="0 0");var c=a.split(" "),d=-1!==a.indexOf("left")?"0%":-1!==a.indexOf("right")?"100%":c[0],e=-1!==a.indexOf("top")?"0%":-1!==a.indexOf("bottom")?"100%":c[1];return null==e?e="0":"center"===e&&(e="50%"),("center"===d||isNaN(parseFloat(d))&&-1===(d+"").indexOf("="))&&(d="50%"),b&&(b.oxp=-1!==d.indexOf("%"),b.oyp=-1!==e.indexOf("%"),b.oxr="="===d.charAt(1),b.oyr="="===e.charAt(1),b.ox=parseFloat(d.replace(s,"")),b.oy=parseFloat(e.replace(s,""))),d+" "+e+(c.length>2?" "+c[2]:"")},ca=function(a,b){return"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*parseFloat(a.substr(2)):parseFloat(a)-parseFloat(b)},da=function(a,b){return null==a?b:"string"==typeof a&&"="===a.charAt(1)?parseInt(a.charAt(0)+"1",10)*Number(a.substr(2))+b:parseFloat(a)},ea=function(a,b,c,d){var e,f,g,h,i=1e-6;return null==a?h=b:"number"==typeof a?h=a:(e=360,f=a.split("_"),g=Number(f[0].replace(s,""))*(-1===a.indexOf("rad")?1:H)-("="===a.charAt(1)?0:b),f.length&&(d&&(d[c]=b+g),-1!==a.indexOf("short")&&(g%=e,g!==g%(e/2)&&(g=0>g?g+e:g-e)),-1!==a.indexOf("_cw")&&0>g?g=(g+9999999999*e)%e-(0|g/e)*e:-1!==a.indexOf("ccw")&&g>0&&(g=(g-9999999999*e)%e-(0|g/e)*e)),h=b+g),i>h&&h>-i&&(h=0),h},fa={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},ga=function(a,b,c){return a=0>a?a+1:a>1?a-1:a,0|255*(1>6*a?b+6*(c-b)*a:.5>a?c:2>3*a?b+6*(c-b)*(2/3-a):b)+.5},ha=function(a){var b,c,d,e,f,g;return a&&""!==a?"number"==typeof a?[a>>16,255&a>>8,255&a]:(","===a.charAt(a.length-1)&&(a=a.substr(0,a.length-1)),fa[a]?fa[a]:"#"===a.charAt(0)?(4===a.length&&(b=a.charAt(1),c=a.charAt(2),d=a.charAt(3),a="#"+b+b+c+c+d+d),a=parseInt(a.substr(1),16),[a>>16,255&a>>8,255&a]):"hsl"===a.substr(0,3)?(a=a.match(p),e=Number(a[0])%360/360,f=Number(a[1])/100,g=Number(a[2])/100,c=.5>=g?g*(f+1):g+f-g*f,b=2*g-c,a.length>3&&(a[3]=Number(a[3])),a[0]=ga(e+1/3,b,c),a[1]=ga(e,b,c),a[2]=ga(e-1/3,b,c),a):(a=a.match(p)||fa.transparent,a[0]=Number(a[0]),a[1]=Number(a[1]),a[2]=Number(a[2]),a.length>3&&(a[3]=Number(a[3])),a)):fa.black},ia="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#.+?\\b";for(i in fa)ia+="|"+i+"\\b";ia=RegExp(ia+")","gi");var ja=function(a,b,c,d){if(null==a)return function(a){return a};var e,f=b?(a.match(ia)||[""])[0]:"",g=a.split(f).join("").match(r)||[],h=a.substr(0,a.indexOf(g[0])),i=")"===a.charAt(a.length-1)?")":"",j=-1!==a.indexOf(" ")?" ":",",k=g.length,l=k>0?g[0].replace(p,""):"";return k?e=b?function(a){var b,m,n,o;if("number"==typeof a)a+=l;else if(d&&F.test(a)){for(o=a.replace(F,"|").split("|"),n=0;o.length>n;n++)o[n]=e(o[n]);return o.join(",")}if(b=(a.match(ia)||[f])[0],m=a.split(b).join("").match(r)||[],n=m.length,k>n--)for(;k>++n;)m[n]=c?m[0|(n-1)/2]:g[n];return h+m.join(j)+j+b+i+(-1!==a.indexOf("inset")?" inset":"")}:function(a){var b,f,m;if("number"==typeof a)a+=l;else if(d&&F.test(a)){for(f=a.replace(F,"|").split("|"),m=0;f.length>m;m++)f[m]=e(f[m]);return f.join(",")}if(b=a.match(r)||[],m=b.length,k>m--)for(;k>++m;)b[m]=c?b[0|(m-1)/2]:g[m];return h+b.join(j)+i}:function(a){return a}},ka=function(a){return a=a.split(","),function(b,c,d,e,f,g,h){var i,j=(c+"").split(" ");for(h={},i=0;4>i;i++)h[a[i]]=j[i]=j[i]||j[(i-1)/2>>0];return e.parse(b,h,f,g)}},la=(M._setPluginRatio=function(a){this.plugin.setRatio(a);for(var b,c,d,e,f=this.data,g=f.proxy,h=f.firstMPT,i=1e-6;h;)b=g[h.v],h.r?b=Math.round(b):i>b&&b>-i&&(b=0),h.t[h.p]=b,h=h._next;if(f.autoRotate&&(f.autoRotate.rotation=g.rotation),1===a)for(h=f.firstMPT;h;){if(c=h.t,c.type){if(1===c.type){for(e=c.xs0+c.s+c.xs1,d=1;c.l>d;d++)e+=c["xn"+d]+c["xs"+(d+1)];c.e=e}}else c.e=c.s+c.xs0;h=h._next}},function(a,b,c,d,e){this.t=a,this.p=b,this.v=c,this.r=e,d&&(d._prev=this,this._next=d)}),ma=(M._parseToProxy=function(a,b,c,d,e,f){var g,h,i,j,k,l=d,m={},n={},o=c._transform,p=I;for(c._transform=null,I=b,d=k=c.parse(a,b,d,e),I=p,f&&(c._transform=o,l&&(l._prev=null,l._prev&&(l._prev._next=null)));d&&d!==l;){if(1>=d.type&&(h=d.p, n[h]=d.s+d.c,m[h]=d.s,f||(j=new la(d,"s",h,j,d.r),d.c=0),1===d.type))for(g=d.l;--g>0;)i="xn"+g,h=d.p+"_"+i,n[h]=d.data[i],m[h]=d[i],f||(j=new la(d,i,h,j,d.rxp[i]));d=d._next}return{proxy:m,end:n,firstMPT:j,pt:k}},M.CSSPropTween=function(a,b,d,e,g,h,i,j,k,l,m){this.t=a,this.p=b,this.s=d,this.c=e,this.n=i||b,a instanceof ma||f.push(this.n),this.r=j,this.type=h||0,k&&(this.pr=k,c=!0),this.b=void 0===l?d:l,this.e=void 0===m?d+e:m,g&&(this._next=g,g._prev=this)}),na=g.parseComplex=function(a,b,c,d,e,f,g,h,i,k){c=c||f||"",g=new ma(a,b,0,0,g,k?2:1,null,!1,h,c,d),d+="";var l,m,n,o,r,s,t,u,v,w,y,z,A=c.split(", ").join(",").split(" "),B=d.split(", ").join(",").split(" "),C=A.length,D=j!==!1;for((-1!==d.indexOf(",")||-1!==c.indexOf(","))&&(A=A.join(" ").replace(F,", ").split(" "),B=B.join(" ").replace(F,", ").split(" "),C=A.length),C!==B.length&&(A=(f||"").split(" "),C=A.length),g.plugin=i,g.setRatio=k,l=0;C>l;l++)if(o=A[l],r=B[l],u=parseFloat(o),u||0===u)g.appendXtra("",u,ca(r,u),r.replace(q,""),D&&-1!==r.indexOf("px"),!0);else if(e&&("#"===o.charAt(0)||fa[o]||x.test(o)))z=","===r.charAt(r.length-1)?"),":")",o=ha(o),r=ha(r),v=o.length+r.length>6,v&&!O&&0===r[3]?(g["xs"+g.l]+=g.l?" transparent":"transparent",g.e=g.e.split(B[l]).join("transparent")):(O||(v=!1),g.appendXtra(v?"rgba(":"rgb(",o[0],r[0]-o[0],",",!0,!0).appendXtra("",o[1],r[1]-o[1],",",!0).appendXtra("",o[2],r[2]-o[2],v?",":z,!0),v&&(o=4>o.length?1:o[3],g.appendXtra("",o,(4>r.length?1:r[3])-o,z,!1)));else if(s=o.match(p)){if(t=r.match(q),!t||t.length!==s.length)return g;for(n=0,m=0;s.length>m;m++)y=s[m],w=o.indexOf(y,n),g.appendXtra(o.substr(n,w-n),Number(y),ca(t[m],y),"",D&&"px"===o.substr(w+y.length,2),0===m),n=w+y.length;g["xs"+g.l]+=o.substr(n)}else g["xs"+g.l]+=g.l?" "+o:o;if(-1!==d.indexOf("=")&&g.data){for(z=g.xs0+g.data.s,l=1;g.l>l;l++)z+=g["xs"+l]+g.data["xn"+l];g.e=z+g["xs"+l]}return g.l||(g.type=-1,g.xs0=g.e),g.xfirst||g},oa=9;for(i=ma.prototype,i.l=i.pr=0;--oa>0;)i["xn"+oa]=0,i["xs"+oa]="";i.xs0="",i._next=i._prev=i.xfirst=i.data=i.plugin=i.setRatio=i.rxp=null,i.appendXtra=function(a,b,c,d,e,f){var g=this,h=g.l;return g["xs"+h]+=f&&h?" "+a:a||"",c||0===h||g.plugin?(g.l++,g.type=g.setRatio?2:1,g["xs"+g.l]=d||"",h>0?(g.data["xn"+h]=b+c,g.rxp["xn"+h]=e,g["xn"+h]=b,g.plugin||(g.xfirst=new ma(g,"xn"+h,b,c,g.xfirst||g,0,g.n,e,g.pr),g.xfirst.xs0=0),g):(g.data={s:b+c},g.rxp={},g.s=b,g.c=c,g.r=e,g)):(g["xs"+h]+=b+(d||""),g)};var pa=function(a,b){b=b||{},this.p=b.prefix?T(a)||a:a,h[a]=h[this.p]=this,this.format=b.formatter||ja(b.defaultValue,b.color,b.collapsible,b.multi),b.parser&&(this.parse=b.parser),this.clrs=b.color,this.multi=b.multi,this.keyword=b.keyword,this.dflt=b.defaultValue,this.pr=b.priority||0},qa=M._registerComplexSpecialProp=function(a,b,c){"object"!=typeof b&&(b={parser:c});var d,e,f=a.split(","),g=b.defaultValue;for(c=c||[g],d=0;f.length>d;d++)b.prefix=0===d&&b.prefix,b.defaultValue=c[d]||g,e=new pa(f[d],b)},ra=function(a){if(!h[a]){var b=a.charAt(0).toUpperCase()+a.substr(1)+"Plugin";qa(a,{parser:function(a,c,d,e,f,g,i){var j=(window.GreenSockGlobals||window).com.greensock.plugins[b];return j?(j._cssRegister(),h[d].parse(a,c,d,e,f,g,i)):(Q("Error: "+b+" js file not loaded."),f)}})}};i=pa.prototype,i.parseComplex=function(a,b,c,d,e,f){var g,h,i,j,k,l,m=this.keyword;if(this.multi&&(F.test(c)||F.test(b)?(h=b.replace(F,"|").split("|"),i=c.replace(F,"|").split("|")):m&&(h=[b],i=[c])),i){for(j=i.length>h.length?i.length:h.length,g=0;j>g;g++)b=h[g]=h[g]||this.dflt,c=i[g]=i[g]||this.dflt,m&&(k=b.indexOf(m),l=c.indexOf(m),k!==l&&(c=-1===l?i:h,c[g]+=" "+m));b=h.join(", "),c=i.join(", ")}return na(a,this.p,b,c,this.clrs,this.dflt,d,this.pr,e,f)},i.parse=function(a,b,c,d,f,g){return this.parseComplex(a.style,this.format(V(a,this.p,e,!1,this.dflt)),this.format(b),f,g)},g.registerSpecialProp=function(a,b,c){qa(a,{parser:function(a,d,e,f,g,h){var i=new ma(a,e,0,0,g,2,e,!1,c);return i.plugin=h,i.setRatio=b(a,d,f._tween,e),i},priority:c})};var sa="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective".split(","),ta=T("transform"),ua=R+"transform",va=T("transformOrigin"),wa=null!==T("perspective"),xa=M.Transform=function(){this.skewY=0},ya=M.getTransform=function(a,b,c,d){if(a._gsTransform&&c&&!d)return a._gsTransform;var e,f,h,i,j,k,l,m,n,o,p,q,r,s=c?a._gsTransform||new xa:new xa,t=0>s.scaleX,u=2e-5,v=1e5,w=179.99,x=w*G,y=wa?parseFloat(V(a,va,b,!1,"0 0 0").split(" ")[2])||s.zOrigin||0:0;for(ta?e=V(a,ua,b,!0):a.currentStyle&&(e=a.currentStyle.filter.match(D),e=e&&4===e.length?[e[0].substr(4),Number(e[2].substr(4)),Number(e[1].substr(4)),e[3].substr(4),s.x||0,s.y||0].join(","):""),f=(e||"").match(/(?:\-|\b)[\d\-\.e]+\b/gi)||[],h=f.length;--h>-1;)i=Number(f[h]),f[h]=(j=i-(i|=0))?(0|j*v+(0>j?-.5:.5))/v+i:i;if(16===f.length){var z=f[8],A=f[9],B=f[10],C=f[12],E=f[13],F=f[14];if(s.zOrigin&&(F=-s.zOrigin,C=z*F-f[12],E=A*F-f[13],F=B*F+s.zOrigin-f[14]),!c||d||null==s.rotationX){var I,J,K,L,M,N,O,P=f[0],Q=f[1],R=f[2],S=f[3],T=f[4],U=f[5],W=f[6],X=f[7],Y=f[11],Z=Math.atan2(W,B),$=-x>Z||Z>x;s.rotationX=Z*H,Z&&(L=Math.cos(-Z),M=Math.sin(-Z),I=T*L+z*M,J=U*L+A*M,K=W*L+B*M,z=T*-M+z*L,A=U*-M+A*L,B=W*-M+B*L,Y=X*-M+Y*L,T=I,U=J,W=K),Z=Math.atan2(z,P),s.rotationY=Z*H,Z&&(N=-x>Z||Z>x,L=Math.cos(-Z),M=Math.sin(-Z),I=P*L-z*M,J=Q*L-A*M,K=R*L-B*M,A=Q*M+A*L,B=R*M+B*L,Y=S*M+Y*L,P=I,Q=J,R=K),Z=Math.atan2(Q,U),s.rotation=Z*H,Z&&(O=-x>Z||Z>x,L=Math.cos(-Z),M=Math.sin(-Z),P=P*L+T*M,J=Q*L+U*M,U=Q*-M+U*L,W=R*-M+W*L,Q=J),O&&$?s.rotation=s.rotationX=0:O&&N?s.rotation=s.rotationY=0:N&&$&&(s.rotationY=s.rotationX=0),s.scaleX=(0|Math.sqrt(P*P+Q*Q)*v+.5)/v,s.scaleY=(0|Math.sqrt(U*U+A*A)*v+.5)/v,s.scaleZ=(0|Math.sqrt(W*W+B*B)*v+.5)/v,s.skewX=0,s.perspective=Y?1/(0>Y?-Y:Y):0,s.x=C,s.y=E,s.z=F}}else if(!(wa&&!d&&f.length&&s.x===f[4]&&s.y===f[5]&&(s.rotationX||s.rotationY)||void 0!==s.x&&"none"===V(a,"display",b))){var _=f.length>=6,aa=_?f[0]:1,ba=f[1]||0,ca=f[2]||0,da=_?f[3]:1;s.x=f[4]||0,s.y=f[5]||0,k=Math.sqrt(aa*aa+ba*ba),l=Math.sqrt(da*da+ca*ca),m=aa||ba?Math.atan2(ba,aa)*H:s.rotation||0,n=ca||da?Math.atan2(ca,da)*H+m:s.skewX||0,o=k-Math.abs(s.scaleX||0),p=l-Math.abs(s.scaleY||0),Math.abs(n)>90&&270>Math.abs(n)&&(t?(k*=-1,n+=0>=m?180:-180,m+=0>=m?180:-180):(l*=-1,n+=0>=n?180:-180)),q=(m-s.rotation)%180,r=(n-s.skewX)%180,(void 0===s.skewX||o>u||-u>o||p>u||-u>p||q>-w&&w>q&&false|q*v||r>-w&&w>r&&false|r*v)&&(s.scaleX=k,s.scaleY=l,s.rotation=m,s.skewX=n),wa&&(s.rotationX=s.rotationY=s.z=0,s.perspective=parseFloat(g.defaultTransformPerspective)||0,s.scaleZ=1)}s.zOrigin=y;for(h in s)u>s[h]&&s[h]>-u&&(s[h]=0);return c&&(a._gsTransform=s),s},za=function(a){var b,c,d=this.data,e=-d.rotation*G,f=e+d.skewX*G,g=1e5,h=(0|Math.cos(e)*d.scaleX*g)/g,i=(0|Math.sin(e)*d.scaleX*g)/g,j=(0|Math.sin(f)*-d.scaleY*g)/g,k=(0|Math.cos(f)*d.scaleY*g)/g,l=this.t.style,m=this.t.currentStyle;if(m){c=i,i=-j,j=-c,b=m.filter,l.filter="";var n,p,q=this.t.offsetWidth,r=this.t.offsetHeight,s="absolute"!==m.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+h+", M12="+i+", M21="+j+", M22="+k,w=d.x,x=d.y;if(null!=d.ox&&(n=(d.oxp?.01*q*d.ox:d.ox)-q/2,p=(d.oyp?.01*r*d.oy:d.oy)-r/2,w+=n-(n*h+p*i),x+=p-(n*j+p*k)),s?(n=q/2,p=r/2,v+=", Dx="+(n-(n*h+p*i)+w)+", Dy="+(p-(n*j+p*k)+x)+")"):v+=", sizingMethod='auto expand')",l.filter=-1!==b.indexOf("DXImageTransform.Microsoft.Matrix(")?b.replace(E,v):v+" "+b,(0===a||1===a)&&1===h&&0===i&&0===j&&1===k&&(s&&-1===v.indexOf("Dx=0, Dy=0")||u.test(b)&&100!==parseFloat(RegExp.$1)||-1===b.indexOf("gradient("&&b.indexOf("Alpha"))&&l.removeAttribute("filter")),!s){var y,z,A,B=8>o?1:-1;for(n=d.ieOffsetX||0,p=d.ieOffsetY||0,d.ieOffsetX=Math.round((q-((0>h?-h:h)*q+(0>i?-i:i)*r))/2+w),d.ieOffsetY=Math.round((r-((0>k?-k:k)*r+(0>j?-j:j)*q))/2+x),oa=0;4>oa;oa++)z=_[oa],y=m[z],c=-1!==y.indexOf("px")?parseFloat(y):W(this.t,z,parseFloat(y),y.replace(t,""))||0,A=c!==d[z]?2>oa?-d.ieOffsetX:-d.ieOffsetY:2>oa?n-d.ieOffsetX:p-d.ieOffsetY,l[z]=(d[z]=Math.round(c-A*(0===oa||2===oa?1:B)))+"px"}}},Aa=M.set3DTransformRatio=function(a){var b,c,d,e,f,g,h,i,j,k,l,n,o,p,q,r,s,t,u,v,w,x,y,z=this.data,A=this.t.style,B=z.rotation*G,C=z.scaleX,D=z.scaleY,E=z.scaleZ,F=z.perspective;if(!(1!==a&&0!==a||"auto"!==z.force3D||z.rotationY||z.rotationX||1!==E||F||z.z))return Ba.call(this,a),void 0;if(m){var H=1e-4;H>C&&C>-H&&(C=E=2e-5),H>D&&D>-H&&(D=E=2e-5),!F||z.z||z.rotationX||z.rotationY||(F=0)}if(B||z.skewX)t=Math.cos(B),u=Math.sin(B),b=t,f=u,z.skewX&&(B-=z.skewX*G,t=Math.cos(B),u=Math.sin(B),"simple"===z.skewType&&(v=Math.tan(z.skewX*G),v=Math.sqrt(1+v*v),t*=v,u*=v)),c=-u,g=t;else{if(!(z.rotationY||z.rotationX||1!==E||F))return A[ta]="translate3d("+z.x+"px,"+z.y+"px,"+z.z+"px)"+(1!==C||1!==D?" scale("+C+","+D+")":""),void 0;b=g=1,c=f=0}l=1,d=e=h=i=j=k=n=o=p=0,q=F?-1/F:0,r=z.zOrigin,s=1e5,B=z.rotationY*G,B&&(t=Math.cos(B),u=Math.sin(B),j=l*-u,o=q*-u,d=b*u,h=f*u,l*=t,q*=t,b*=t,f*=t),B=z.rotationX*G,B&&(t=Math.cos(B),u=Math.sin(B),v=c*t+d*u,w=g*t+h*u,x=k*t+l*u,y=p*t+q*u,d=c*-u+d*t,h=g*-u+h*t,l=k*-u+l*t,q=p*-u+q*t,c=v,g=w,k=x,p=y),1!==E&&(d*=E,h*=E,l*=E,q*=E),1!==D&&(c*=D,g*=D,k*=D,p*=D),1!==C&&(b*=C,f*=C,j*=C,o*=C),r&&(n-=r,e=d*n,i=h*n,n=l*n+r),e=(v=(e+=z.x)-(e|=0))?(0|v*s+(0>v?-.5:.5))/s+e:e,i=(v=(i+=z.y)-(i|=0))?(0|v*s+(0>v?-.5:.5))/s+i:i,n=(v=(n+=z.z)-(n|=0))?(0|v*s+(0>v?-.5:.5))/s+n:n,A[ta]="matrix3d("+[(0|b*s)/s,(0|f*s)/s,(0|j*s)/s,(0|o*s)/s,(0|c*s)/s,(0|g*s)/s,(0|k*s)/s,(0|p*s)/s,(0|d*s)/s,(0|h*s)/s,(0|l*s)/s,(0|q*s)/s,e,i,n,F?1+-n/F:1].join(",")+")"},Ba=M.set2DTransformRatio=function(a){var b,c,d,e,f,g=this.data,h=this.t,i=h.style;return g.rotationX||g.rotationY||g.z||g.force3D===!0||"auto"===g.force3D&&1!==a&&0!==a?(this.setRatio=Aa,Aa.call(this,a),void 0):(g.rotation||g.skewX?(b=g.rotation*G,c=b-g.skewX*G,d=1e5,e=g.scaleX*d,f=g.scaleY*d,i[ta]="matrix("+(0|Math.cos(b)*e)/d+","+(0|Math.sin(b)*e)/d+","+(0|Math.sin(c)*-f)/d+","+(0|Math.cos(c)*f)/d+","+g.x+","+g.y+")"):i[ta]="matrix("+g.scaleX+",0,0,"+g.scaleY+","+g.x+","+g.y+")",void 0)};qa("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType",{parser:function(a,b,c,d,f,h,i){if(d._transform)return f;var j,k,l,m,n,o,p,q=d._transform=ya(a,e,!0,i.parseTransform),r=a.style,s=1e-6,t=sa.length,u=i,v={};if("string"==typeof u.transform&&ta)l=K.style,l[ta]=u.transform,l.display="block",l.position="absolute",J.body.appendChild(K),j=ya(K,null,!1),J.body.removeChild(K);else if("object"==typeof u){if(j={scaleX:da(null!=u.scaleX?u.scaleX:u.scale,q.scaleX),scaleY:da(null!=u.scaleY?u.scaleY:u.scale,q.scaleY),scaleZ:da(u.scaleZ,q.scaleZ),x:da(u.x,q.x),y:da(u.y,q.y),z:da(u.z,q.z),perspective:da(u.transformPerspective,q.perspective)},p=u.directionalRotation,null!=p)if("object"==typeof p)for(l in p)u[l]=p[l];else u.rotation=p;j.rotation=ea("rotation"in u?u.rotation:"shortRotation"in u?u.shortRotation+"_short":"rotationZ"in u?u.rotationZ:q.rotation,q.rotation,"rotation",v),wa&&(j.rotationX=ea("rotationX"in u?u.rotationX:"shortRotationX"in u?u.shortRotationX+"_short":q.rotationX||0,q.rotationX,"rotationX",v),j.rotationY=ea("rotationY"in u?u.rotationY:"shortRotationY"in u?u.shortRotationY+"_short":q.rotationY||0,q.rotationY,"rotationY",v)),j.skewX=null==u.skewX?q.skewX:ea(u.skewX,q.skewX),j.skewY=null==u.skewY?q.skewY:ea(u.skewY,q.skewY),(k=j.skewY-q.skewY)&&(j.skewX+=k,j.rotation+=k)}for(wa&&null!=u.force3D&&(q.force3D=u.force3D,o=!0),q.skewType=u.skewType||q.skewType||g.defaultSkewType,n=q.force3D||q.z||q.rotationX||q.rotationY||j.z||j.rotationX||j.rotationY||j.perspective,n||null==u.scale||(j.scaleZ=1);--t>-1;)c=sa[t],m=j[c]-q[c],(m>s||-s>m||null!=I[c])&&(o=!0,f=new ma(q,c,q[c],m,f),c in v&&(f.e=v[c]),f.xs0=0,f.plugin=h,d._overwriteProps.push(f.n));return m=u.transformOrigin,(m||wa&&n&&q.zOrigin)&&(ta?(o=!0,c=va,m=(m||V(a,c,e,!1,"50% 50%"))+"",f=new ma(r,c,0,0,f,-1,"transformOrigin"),f.b=r[c],f.plugin=h,wa?(l=q.zOrigin,m=m.split(" "),q.zOrigin=(m.length>2&&(0===l||"0px"!==m[2])?parseFloat(m[2]):l)||0,f.xs0=f.e=m[0]+" "+(m[1]||"50%")+" 0px",f=new ma(q,"zOrigin",0,0,f,-1,f.n),f.b=l,f.xs0=f.e=q.zOrigin):f.xs0=f.e=m):ba(m+"",q)),o&&(d._transformType=n||3===this._transformType?3:2),f},prefix:!0}),qa("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),qa("borderRadius",{defaultValue:"0px",parser:function(a,b,c,f,g){b=this.format(b);var h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],y=a.style;for(p=parseFloat(a.offsetWidth),q=parseFloat(a.offsetHeight),h=b.split(" "),i=0;x.length>i;i++)this.p.indexOf("border")&&(x[i]=T(x[i])),l=k=V(a,x[i],e,!1,"0px"),-1!==l.indexOf(" ")&&(k=l.split(" "),l=k[0],k=k[1]),m=j=h[i],n=parseFloat(l),s=l.substr((n+"").length),t="="===m.charAt(1),t?(o=parseInt(m.charAt(0)+"1",10),m=m.substr(2),o*=parseFloat(m),r=m.substr((o+"").length-(0>o?1:0))||""):(o=parseFloat(m),r=m.substr((o+"").length)),""===r&&(r=d[c]||s),r!==s&&(u=W(a,"borderLeft",n,s),v=W(a,"borderTop",n,s),"%"===r?(l=100*(u/p)+"%",k=100*(v/q)+"%"):"em"===r?(w=W(a,"borderLeft",1,"em"),l=u/w+"em",k=v/w+"em"):(l=u+"px",k=v+"px"),t&&(m=parseFloat(l)+o+r,j=parseFloat(k)+o+r)),g=na(y,x[i],l+" "+k,m+" "+j,!1,"0px",g);return g},prefix:!0,formatter:ja("0px 0px 0px 0px",!1,!0)}),qa("backgroundPosition",{defaultValue:"0 0",parser:function(a,b,c,d,f,g){var h,i,j,k,l,m,n="background-position",p=e||U(a,null),q=this.format((p?o?p.getPropertyValue(n+"-x")+" "+p.getPropertyValue(n+"-y"):p.getPropertyValue(n):a.currentStyle.backgroundPositionX+" "+a.currentStyle.backgroundPositionY)||"0 0"),r=this.format(b);if(-1!==q.indexOf("%")!=(-1!==r.indexOf("%"))&&(m=V(a,"backgroundImage").replace(A,""),m&&"none"!==m)){for(h=q.split(" "),i=r.split(" "),L.setAttribute("src",m),j=2;--j>-1;)q=h[j],k=-1!==q.indexOf("%"),k!==(-1!==i[j].indexOf("%"))&&(l=0===j?a.offsetWidth-L.width:a.offsetHeight-L.height,h[j]=k?parseFloat(q)/100*l+"px":100*(parseFloat(q)/l)+"%");q=h.join(" ")}return this.parseComplex(a.style,q,r,f,g)},formatter:ba}),qa("backgroundSize",{defaultValue:"0 0",formatter:ba}),qa("perspective",{defaultValue:"0px",prefix:!0}),qa("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),qa("transformStyle",{prefix:!0}),qa("backfaceVisibility",{prefix:!0}),qa("userSelect",{prefix:!0}),qa("margin",{parser:ka("marginTop,marginRight,marginBottom,marginLeft")}),qa("padding",{parser:ka("paddingTop,paddingRight,paddingBottom,paddingLeft")}),qa("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(a,b,c,d,f,g){var h,i,j;return 9>o?(i=a.currentStyle,j=8>o?" ":",",h="rect("+i.clipTop+j+i.clipRight+j+i.clipBottom+j+i.clipLeft+")",b=this.format(b).split(",").join(j)):(h=this.format(V(a,this.p,e,!1,this.dflt)),b=this.format(b)),this.parseComplex(a.style,h,b,f,g)}}),qa("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),qa("autoRound,strictUnits",{parser:function(a,b,c,d,e){return e}}),qa("border",{defaultValue:"0px solid #000",parser:function(a,b,c,d,f,g){return this.parseComplex(a.style,this.format(V(a,"borderTopWidth",e,!1,"0px")+" "+V(a,"borderTopStyle",e,!1,"solid")+" "+V(a,"borderTopColor",e,!1,"#000")),this.format(b),f,g)},color:!0,formatter:function(a){var b=a.split(" ");return b[0]+" "+(b[1]||"solid")+" "+(a.match(ia)||["#000"])[0]}}),qa("borderWidth",{parser:ka("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),qa("float,cssFloat,styleFloat",{parser:function(a,b,c,d,e){var f=a.style,g="cssFloat"in f?"cssFloat":"styleFloat";return new ma(f,g,0,0,e,-1,c,!1,0,f[g],b)}});var Ca=function(a){var b,c=this.t,d=c.filter||V(this.data,"filter"),e=0|this.s+this.c*a;100===e&&(-1===d.indexOf("atrix(")&&-1===d.indexOf("radient(")&&-1===d.indexOf("oader(")?(c.removeAttribute("filter"),b=!V(this.data,"filter")):(c.filter=d.replace(w,""),b=!0)),b||(this.xn1&&(c.filter=d=d||"alpha(opacity="+e+")"),-1===d.indexOf("pacity")?0===e&&this.xn1||(c.filter=d+" alpha(opacity="+e+")"):c.filter=d.replace(u,"opacity="+e))};qa("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(a,b,c,d,f,g){var h=parseFloat(V(a,"opacity",e,!1,"1")),i=a.style,j="autoAlpha"===c;return"string"==typeof b&&"="===b.charAt(1)&&(b=("-"===b.charAt(0)?-1:1)*parseFloat(b.substr(2))+h),j&&1===h&&"hidden"===V(a,"visibility",e)&&0!==b&&(h=0),O?f=new ma(i,"opacity",h,b-h,f):(f=new ma(i,"opacity",100*h,100*(b-h),f),f.xn1=j?1:0,i.zoom=1,f.type=2,f.b="alpha(opacity="+f.s+")",f.e="alpha(opacity="+(f.s+f.c)+")",f.data=a,f.plugin=g,f.setRatio=Ca),j&&(f=new ma(i,"visibility",0,0,f,-1,null,!1,0,0!==h?"inherit":"hidden",0===b?"hidden":"inherit"),f.xs0="inherit",d._overwriteProps.push(f.n),d._overwriteProps.push(c)),f}});var Da=function(a,b){b&&(a.removeProperty?("ms"===b.substr(0,2)&&(b="M"+b.substr(1)),a.removeProperty(b.replace(y,"-$1").toLowerCase())):a.removeAttribute(b))},Ea=function(a){if(this.t._gsClassPT=this,1===a||0===a){this.t.setAttribute("class",0===a?this.b:this.e);for(var b=this.data,c=this.t.style;b;)b.v?c[b.p]=b.v:Da(c,b.p),b=b._next;1===a&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};qa("className",{parser:function(a,b,d,f,g,h,i){var j,k,l,m,n,o=a.getAttribute("class")||"",p=a.style.cssText;if(g=f._classNamePT=new ma(a,d,0,0,g,2),g.setRatio=Ea,g.pr=-11,c=!0,g.b=o,k=Y(a,e),l=a._gsClassPT){for(m={},n=l.data;n;)m[n.p]=1,n=n._next;l.setRatio(1)}return a._gsClassPT=g,g.e="="!==b.charAt(1)?b:o.replace(RegExp("\\s*\\b"+b.substr(2)+"\\b"),"")+("+"===b.charAt(0)?" "+b.substr(2):""),f._tween._duration&&(a.setAttribute("class",g.e),j=Z(a,k,Y(a),i,m),a.setAttribute("class",o),g.data=j.firstMPT,a.style.cssText=p,g=g.xfirst=f.parse(a,j.difs,g,h)),g}});var Fa=function(a){if((1===a||0===a)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var b,c,d,e,f=this.t.style,g=h.transform.parse;if("all"===this.e)f.cssText="",e=!0;else for(b=this.e.split(","),d=b.length;--d>-1;)c=b[d],h[c]&&(h[c].parse===g?e=!0:c="transformOrigin"===c?va:h[c].p),Da(f,c);e&&(Da(f,ta),this.t._gsTransform&&delete this.t._gsTransform)}};for(qa("clearProps",{parser:function(a,b,d,e,f){return f=new ma(a,d,0,0,f,2),f.setRatio=Fa,f.e=b,f.pr=-10,f.data=e._tween,c=!0,f}}),i="bezier,throwProps,physicsProps,physics2D".split(","),oa=i.length;oa--;)ra(i[oa]);i=g.prototype,i._firstPT=null,i._onInitTween=function(a,b,h){if(!a.nodeType)return!1;this._target=a,this._tween=h,this._vars=b,j=b.autoRound,c=!1,d=b.suffixMap||g.suffixMap,e=U(a,""),f=this._overwriteProps;var i,m,o,p,q,r,s,t,u,w=a.style;if(k&&""===w.zIndex&&(i=V(a,"zIndex",e),("auto"===i||""===i)&&this._addLazySet(w,"zIndex",0)),"string"==typeof b&&(p=w.cssText,i=Y(a,e),w.cssText=p+";"+b,i=Z(a,i,Y(a)).difs,!O&&v.test(b)&&(i.opacity=parseFloat(RegExp.$1)),b=i,w.cssText=p),this._firstPT=m=this.parse(a,b,null),this._transformType){for(u=3===this._transformType,ta?l&&(k=!0,""===w.zIndex&&(s=V(a,"zIndex",e),("auto"===s||""===s)&&this._addLazySet(w,"zIndex",0)),n&&this._addLazySet(w,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(u?"visible":"hidden"))):w.zoom=1,o=m;o&&o._next;)o=o._next;t=new ma(a,"transform",0,0,null,2),this._linkCSSP(t,null,o),t.setRatio=u&&wa?Aa:ta?Ba:za,t.data=this._transform||ya(a,e,!0),f.pop()}if(c){for(;m;){for(r=m._next,o=p;o&&o.pr>m.pr;)o=o._next;(m._prev=o?o._prev:q)?m._prev._next=m:p=m,(m._next=o)?o._prev=m:q=m,m=r}this._firstPT=p}return!0},i.parse=function(a,b,c,f){var g,i,k,l,m,n,o,p,q,r,s=a.style;for(g in b)n=b[g],i=h[g],i?c=i.parse(a,n,g,this,c,f,b):(m=V(a,g,e)+"",q="string"==typeof n,"color"===g||"fill"===g||"stroke"===g||-1!==g.indexOf("Color")||q&&x.test(n)?(q||(n=ha(n),n=(n.length>3?"rgba(":"rgb(")+n.join(",")+")"),c=na(s,g,m,n,!0,"transparent",c,0,f)):!q||-1===n.indexOf(" ")&&-1===n.indexOf(",")?(k=parseFloat(m),o=k||0===k?m.substr((k+"").length):"",(""===m||"auto"===m)&&("width"===g||"height"===g?(k=aa(a,g,e),o="px"):"left"===g||"top"===g?(k=X(a,g,e),o="px"):(k="opacity"!==g?0:1,o="")),r=q&&"="===n.charAt(1),r?(l=parseInt(n.charAt(0)+"1",10),n=n.substr(2),l*=parseFloat(n),p=n.replace(t,"")):(l=parseFloat(n),p=q?n.substr((l+"").length)||"":""),""===p&&(p=g in d?d[g]:o),n=l||0===l?(r?l+k:l)+p:b[g],o!==p&&""!==p&&(l||0===l)&&k&&(k=W(a,g,k,o),"%"===p?(k/=W(a,g,100,"%")/100,b.strictUnits!==!0&&(m=k+"%")):"em"===p?k/=W(a,g,1,"em"):"px"!==p&&(l=W(a,g,l,p),p="px"),r&&(l||0===l)&&(n=l+k+p)),r&&(l+=k),!k&&0!==k||!l&&0!==l?void 0!==s[g]&&(n||"NaN"!=n+""&&null!=n)?(c=new ma(s,g,l||k||0,0,c,-1,g,!1,0,m,n),c.xs0="none"!==n||"display"!==g&&-1===g.indexOf("Style")?n:m):Q("invalid "+g+" tween value: "+b[g]):(c=new ma(s,g,k,l-k,c,0,g,j!==!1&&("px"===p||"zIndex"===g),0,m,n),c.xs0=p)):c=na(s,g,m,n,!0,null,c,0,f)),f&&c&&!c.plugin&&(c.plugin=f);return c},i.setRatio=function(a){var b,c,d,e=this._firstPT,f=1e-6;if(1!==a||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(a||this._tween._time!==this._tween._duration&&0!==this._tween._time||this._tween._rawPrevTime===-1e-6)for(;e;){if(b=e.c*a+e.s,e.r?b=Math.round(b):f>b&&b>-f&&(b=0),e.type)if(1===e.type)if(d=e.l,2===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2;else if(3===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3;else if(4===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4;else if(5===d)e.t[e.p]=e.xs0+b+e.xs1+e.xn1+e.xs2+e.xn2+e.xs3+e.xn3+e.xs4+e.xn4+e.xs5;else{for(c=e.xs0+b+e.xs1,d=1;e.l>d;d++)c+=e["xn"+d]+e["xs"+(d+1)];e.t[e.p]=c}else-1===e.type?e.t[e.p]=e.xs0:e.setRatio&&e.setRatio(a);else e.t[e.p]=b+e.xs0;e=e._next}else for(;e;)2!==e.type?e.t[e.p]=e.b:e.setRatio(a),e=e._next;else for(;e;)2!==e.type?e.t[e.p]=e.e:e.setRatio(a),e=e._next},i._enableTransforms=function(a){this._transformType=a||3===this._transformType?3:2,this._transform=this._transform||ya(this._target,e,!0)};var Ga=function(){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};i._addLazySet=function(a,b,c){var d=this._firstPT=new ma(a,b,0,0,this._firstPT,2);d.e=c,d.setRatio=Ga,d.data=this},i._linkCSSP=function(a,b,c,d){return a&&(b&&(b._prev=a),a._next&&(a._next._prev=a._prev),a._prev?a._prev._next=a._next:this._firstPT===a&&(this._firstPT=a._next,d=!0),c?c._next=a:d||null!==this._firstPT||(this._firstPT=a),a._next=b,a._prev=c),a},i._kill=function(b){var c,d,e,f=b;if(b.autoAlpha||b.alpha){f={};for(d in b)f[d]=b[d];f.opacity=1,f.autoAlpha&&(f.visibility=1)}return b.className&&(c=this._classNamePT)&&(e=c.xfirst,e&&e._prev?this._linkCSSP(e._prev,c._next,e._prev._prev):e===this._firstPT&&(this._firstPT=c._next),c._next&&this._linkCSSP(c._next,c._next._next,e._prev),this._classNamePT=null),a.prototype._kill.call(this,f)};var Ha=function(a,b,c){var d,e,f,g;if(a.slice)for(e=a.length;--e>-1;)Ha(a[e],b,c);else for(d=a.childNodes,e=d.length;--e>-1;)f=d[e],g=f.type,f.style&&(b.push(Y(f)),c&&c.push(f)),1!==g&&9!==g&&11!==g||!f.childNodes.length||Ha(f,b,c)};return g.cascadeTo=function(a,c,d){var e,f,g,h=b.to(a,c,d),i=[h],j=[],k=[],l=[],m=b._internals.reservedProps;for(a=h._targets||h.target,Ha(a,j,l),h.render(c,!0),Ha(a,k),h.render(0,!0),h._enabled(!0),e=l.length;--e>-1;)if(f=Z(l[e],j[e],k[e]),f.firstMPT){f=f.difs;for(g in d)m[g]&&(f[g]=d[g]);i.push(b.to(l[e],c,f))}return i},a.activate([g]),g},!0),function(){var a=window._gsDefine.plugin({propName:"roundProps",priority:-1,API:2,init:function(a,b,c){return this._tween=c,!0}}),b=a.prototype;b._onInitAllProps=function(){for(var a,b,c,d=this._tween,e=d.vars.roundProps instanceof Array?d.vars.roundProps:d.vars.roundProps.split(","),f=e.length,g={},h=d._propLookup.roundProps;--f>-1;)g[e[f]]=1;for(f=e.length;--f>-1;)for(a=e[f],b=d._firstPT;b;)c=b._next,b.pg?b.t._roundProps(g,!0):b.n===a&&(this._add(b.t,a,b.s,b.c),c&&(c._prev=b._prev),b._prev?b._prev._next=c:d._firstPT===b&&(d._firstPT=c),b._next=b._prev=null,d._propLookup[a]=h),b=c;return!1},b._add=function(a,b,c,d){this._addTween(a,b,c,c+d,b,!0),this._overwriteProps.push(b)}}(),window._gsDefine.plugin({propName:"attr",API:2,version:"0.3.2",init:function(a,b){var c,d,e;if("function"!=typeof a.setAttribute)return!1;this._target=a,this._proxy={},this._start={},this._end={};for(c in b)this._start[c]=this._proxy[c]=d=a.getAttribute(c),e=this._addTween(this._proxy,c,parseFloat(d),b[c],c),this._end[c]=e?e.s+e.c:b[c],this._overwriteProps.push(c);return!0},set:function(a){this._super.setRatio.call(this,a);for(var b,c=this._overwriteProps,d=c.length,e=1===a?this._end:a?this._proxy:this._start;--d>-1;)b=c[d],this._target.setAttribute(b,e[b]+"")}}),window._gsDefine.plugin({propName:"directionalRotation",API:2,version:"0.2.0",init:function(a,b){"object"!=typeof b&&(b={rotation:b}),this.finals={};var c,d,e,f,g,h,i=b.useRadians===!0?2*Math.PI:360,j=1e-6;for(c in b)"useRadians"!==c&&(h=(b[c]+"").split("_"),d=h[0],e=parseFloat("function"!=typeof a[c]?a[c]:a[c.indexOf("set")||"function"!=typeof a["get"+c.substr(3)]?c:"get"+c.substr(3)]()),f=this.finals[c]="string"==typeof d&&"="===d.charAt(1)?e+parseInt(d.charAt(0)+"1",10)*Number(d.substr(2)):Number(d)||0,g=f-e,h.length&&(d=h.join("_"),-1!==d.indexOf("short")&&(g%=i,g!==g%(i/2)&&(g=0>g?g+i:g-i)),-1!==d.indexOf("_cw")&&0>g?g=(g+9999999999*i)%i-(0|g/i)*i:-1!==d.indexOf("ccw")&&g>0&&(g=(g-9999999999*i)%i-(0|g/i)*i)),(g>j||-j>g)&&(this._addTween(a,c,e,e+g,c),this._overwriteProps.push(c)));return!0},set:function(a){var b;if(1!==a)this._super.setRatio.call(this,a);else for(b=this._firstPT;b;)b.f?b.t[b.p](this.finals[b.p]):b.t[b.p]=this.finals[b.p],b=b._next}})._autoCSS=!0,window._gsDefine("easing.Back",["easing.Ease"],function(a){var b,c,d,e=window.GreenSockGlobals||window,f=e.com.greensock,g=2*Math.PI,h=Math.PI/2,i=f._class,j=function(b,c){var d=i("easing."+b,function(){},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,d},k=a.register||function(){},l=function(a,b,c,d){var e=i("easing."+a,{easeOut:new b,easeIn:new c,easeInOut:new d},!0);return k(e,a),e},m=function(a,b,c){this.t=a,this.v=b,c&&(this.next=c,c.prev=this,this.c=c.v-b,this.gap=c.t-a)},n=function(b,c){var d=i("easing."+b,function(a){this._p1=a||0===a?a:1.70158,this._p2=1.525*this._p1},!0),e=d.prototype=new a;return e.constructor=d,e.getRatio=c,e.config=function(a){return new d(a)},d},o=l("Back",n("BackOut",function(a){return(a-=1)*a*((this._p1+1)*a+this._p1)+1}),n("BackIn",function(a){return a*a*((this._p1+1)*a-this._p1)}),n("BackInOut",function(a){return 1>(a*=2)?.5*a*a*((this._p2+1)*a-this._p2):.5*((a-=2)*a*((this._p2+1)*a+this._p2)+2)})),p=i("easing.SlowMo",function(a,b,c){b=b||0===b?b:.7,null==a?a=.7:a>1&&(a=1),this._p=1!==a?b:0,this._p1=(1-a)/2,this._p2=a,this._p3=this._p1+this._p2,this._calcEnd=c===!0},!0),q=p.prototype=new a;return q.constructor=p,q.getRatio=function(a){var b=a+(.5-a)*this._p;return this._p1>a?this._calcEnd?1-(a=1-a/this._p1)*a:b-(a=1-a/this._p1)*a*a*a*b:a>this._p3?this._calcEnd?1-(a=(a-this._p3)/this._p1)*a:b+(a-b)*(a=(a-this._p3)/this._p1)*a*a*a:this._calcEnd?1:b},p.ease=new p(.7,.7),q.config=p.config=function(a,b,c){return new p(a,b,c)},b=i("easing.SteppedEase",function(a){a=a||1,this._p1=1/a,this._p2=a+1},!0),q=b.prototype=new a,q.constructor=b,q.getRatio=function(a){return 0>a?a=0:a>=1&&(a=.999999999),(this._p2*a>>0)*this._p1},q.config=b.config=function(a){return new b(a)},c=i("easing.RoughEase",function(b){b=b||{};for(var c,d,e,f,g,h,i=b.taper||"none",j=[],k=0,l=0|(b.points||20),n=l,o=b.randomize!==!1,p=b.clamp===!0,q=b.template instanceof a?b.template:null,r="number"==typeof b.strength?.4*b.strength:.4;--n>-1;)c=o?Math.random():1/l*n,d=q?q.getRatio(c):c,"none"===i?e=r:"out"===i?(f=1-c,e=f*f*r):"in"===i?e=c*c*r:.5>c?(f=2*c,e=.5*f*f*r):(f=2*(1-c),e=.5*f*f*r),o?d+=Math.random()*e-.5*e:n%2?d+=.5*e:d-=.5*e,p&&(d>1?d=1:0>d&&(d=0)),j[k++]={x:c,y:d};for(j.sort(function(a,b){return a.x-b.x}),h=new m(1,1,null),n=l;--n>-1;)g=j[n],h=new m(g.x,g.y,h);this._prev=new m(0,0,0!==h.t?h:h.next)},!0),q=c.prototype=new a,q.constructor=c,q.getRatio=function(a){var b=this._prev;if(a>b.t){for(;b.next&&a>=b.t;)b=b.next;b=b.prev}else for(;b.prev&&b.t>=a;)b=b.prev;return this._prev=b,b.v+(a-b.t)/b.gap*b.c},q.config=function(a){return new c(a)},c.ease=new c,l("Bounce",j("BounceOut",function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375}),j("BounceIn",function(a){return 1/2.75>(a=1-a)?1-7.5625*a*a:2/2.75>a?1-(7.5625*(a-=1.5/2.75)*a+.75):2.5/2.75>a?1-(7.5625*(a-=2.25/2.75)*a+.9375):1-(7.5625*(a-=2.625/2.75)*a+.984375)}),j("BounceInOut",function(a){var b=.5>a;return a=b?1-2*a:2*a-1,a=1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375,b?.5*(1-a):.5*a+.5})),l("Circ",j("CircOut",function(a){return Math.sqrt(1-(a-=1)*a)}),j("CircIn",function(a){return-(Math.sqrt(1-a*a)-1)}),j("CircInOut",function(a){return 1>(a*=2)?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)})),d=function(b,c,d){var e=i("easing."+b,function(a,b){this._p1=a||1,this._p2=b||d,this._p3=this._p2/g*(Math.asin(1/this._p1)||0)},!0),f=e.prototype=new a;return f.constructor=e,f.getRatio=c,f.config=function(a,b){return new e(a,b)},e},l("Elastic",d("ElasticOut",function(a){return this._p1*Math.pow(2,-10*a)*Math.sin((a-this._p3)*g/this._p2)+1},.3),d("ElasticIn",function(a){return-(this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2))},.3),d("ElasticInOut",function(a){return 1>(a*=2)?-.5*this._p1*Math.pow(2,10*(a-=1))*Math.sin((a-this._p3)*g/this._p2):.5*this._p1*Math.pow(2,-10*(a-=1))*Math.sin((a-this._p3)*g/this._p2)+1},.45)),l("Expo",j("ExpoOut",function(a){return 1-Math.pow(2,-10*a)}),j("ExpoIn",function(a){return Math.pow(2,10*(a-1))-.001}),j("ExpoInOut",function(a){return 1>(a*=2)?.5*Math.pow(2,10*(a-1)):.5*(2-Math.pow(2,-10*(a-1)))})),l("Sine",j("SineOut",function(a){return Math.sin(a*h)}),j("SineIn",function(a){return-Math.cos(a*h)+1}),j("SineInOut",function(a){return-.5*(Math.cos(Math.PI*a)-1)})),i("easing.EaseLookup",{find:function(b){return a.map[b]}},!0),k(e.SlowMo,"SlowMo","ease,"),k(c,"RoughEase","ease,"),k(b,"SteppedEase","ease,"),o},!0)}),function(a){"use strict";var b=a.GreenSockGlobals||a;if(!b.TweenLite){var c,d,e,f,g,h=function(a){var c,d=a.split("."),e=b;for(c=0;d.length>c;c++)e[d[c]]=e=e[d[c]]||{};return e},i=h("com.greensock"),j=1e-10,k=[].slice,l=function(){},m=function(){var a=Object.prototype.toString,b=a.call([]);return function(c){return null!=c&&(c instanceof Array||"object"==typeof c&&!!c.push&&a.call(c)===b)}}(),n={},o=function(c,d,e,f){this.sc=n[c]?n[c].sc:[],n[c]=this,this.gsClass=null,this.func=e;var g=[];this.check=function(i){for(var j,k,l,m,p=d.length,q=p;--p>-1;)(j=n[d[p]]||new o(d[p],[])).gsClass?(g[p]=j.gsClass,q--):i&&j.sc.push(this);if(0===q&&e)for(k=("com.greensock."+c).split("."),l=k.pop(),m=h(k.join("."))[l]=this.gsClass=e.apply(e,g),f&&(b[l]=m,"function"==typeof define&&define.amd?define((a.GreenSockAMDPath?a.GreenSockAMDPath+"/":"")+c.split(".").join("/"),[],function(){return m}):"undefined"!=typeof module&&module.exports&&(module.exports=m)),p=0;this.sc.length>p;p++)this.sc[p].check()},this.check(!0)},p=a._gsDefine=function(a,b,c,d){return new o(a,b,c,d)},q=i._class=function(a,b,c){return b=b||function(){},p(a,[],function(){return b},c),b};p.globals=b;var r=[0,0,1,1],s=[],t=q("easing.Ease",function(a,b,c,d){this._func=a,this._type=c||0,this._power=d||0,this._params=b?r.concat(b):r},!0),u=t.map={},v=t.register=function(a,b,c,d){for(var e,f,g,h,j=b.split(","),k=j.length,l=(c||"easeIn,easeOut,easeInOut").split(",");--k>-1;)for(f=j[k],e=d?q("easing."+f,null,!0):i.easing[f]||{},g=l.length;--g>-1;)h=l[g],u[f+"."+h]=u[h+f]=e[h]=a.getRatio?a:a[h]||new a};for(e=t.prototype,e._calcEnd=!1,e.getRatio=function(a){if(this._func)return this._params[0]=a,this._func.apply(null,this._params);var b=this._type,c=this._power,d=1===b?1-a:2===b?a:.5>a?2*a:2*(1-a);return 1===c?d*=d:2===c?d*=d*d:3===c?d*=d*d*d:4===c&&(d*=d*d*d*d),1===b?1-d:2===b?d:.5>a?d/2:1-d/2},c=["Linear","Quad","Cubic","Quart","Quint,Strong"],d=c.length;--d>-1;)e=c[d]+",Power"+d, v(new t(null,null,1,d),e,"easeOut",!0),v(new t(null,null,2,d),e,"easeIn"+(0===d?",easeNone":"")),v(new t(null,null,3,d),e,"easeInOut");u.linear=i.easing.Linear.easeIn,u.swing=i.easing.Quad.easeInOut;var w=q("events.EventDispatcher",function(a){this._listeners={},this._eventTarget=a||this});e=w.prototype,e.addEventListener=function(a,b,c,d,e){e=e||0;var h,i,j=this._listeners[a],k=0;for(null==j&&(this._listeners[a]=j=[]),i=j.length;--i>-1;)h=j[i],h.c===b&&h.s===c?j.splice(i,1):0===k&&e>h.pr&&(k=i+1);j.splice(k,0,{c:b,s:c,up:d,pr:e}),this!==f||g||f.wake()},e.removeEventListener=function(a,b){var c,d=this._listeners[a];if(d)for(c=d.length;--c>-1;)if(d[c].c===b)return d.splice(c,1),void 0},e.dispatchEvent=function(a){var b,c,d,e=this._listeners[a];if(e)for(b=e.length,c=this._eventTarget;--b>-1;)d=e[b],d.up?d.c.call(d.s||c,{type:a,target:c}):d.c.call(d.s||c)};var x=a.requestAnimationFrame,y=a.cancelAnimationFrame,z=Date.now||function(){return(new Date).getTime()},A=z();for(c=["ms","moz","webkit","o"],d=c.length;--d>-1&&!x;)x=a[c[d]+"RequestAnimationFrame"],y=a[c[d]+"CancelAnimationFrame"]||a[c[d]+"CancelRequestAnimationFrame"];q("Ticker",function(a,b){var c,d,e,h,i,k=this,m=z(),n=b!==!1&&x,o=500,p=33,q=function(a){var b,f,g=z()-A;g>o&&(m+=g-p),A+=g,k.time=(A-m)/1e3,b=k.time-i,(!c||b>0||a===!0)&&(k.frame++,i+=b+(b>=h?.004:h-b),f=!0),a!==!0&&(e=d(q)),f&&k.dispatchEvent("tick")};w.call(k),k.time=k.frame=0,k.tick=function(){q(!0)},k.lagSmoothing=function(a,b){o=a||1/j,p=Math.min(b,o,0)},k.sleep=function(){null!=e&&(n&&y?y(e):clearTimeout(e),d=l,e=null,k===f&&(g=!1))},k.wake=function(){null!==e?k.sleep():k.frame>10&&(A=z()-o+5),d=0===c?l:n&&x?x:function(a){return setTimeout(a,0|1e3*(i-k.time)+1)},k===f&&(g=!0),q(2)},k.fps=function(a){return arguments.length?(c=a,h=1/(c||60),i=this.time+h,k.wake(),void 0):c},k.useRAF=function(a){return arguments.length?(k.sleep(),n=a,k.fps(c),void 0):n},k.fps(a),setTimeout(function(){n&&(!e||5>k.frame)&&k.useRAF(!1)},1500)}),e=i.Ticker.prototype=new i.events.EventDispatcher,e.constructor=i.Ticker;var B=q("core.Animation",function(a,b){if(this.vars=b=b||{},this._duration=this._totalDuration=a||0,this._delay=Number(b.delay)||0,this._timeScale=1,this._active=b.immediateRender===!0,this.data=b.data,this._reversed=b.reversed===!0,Q){g||f.wake();var c=this.vars.useFrames?P:Q;c.add(this,c._time),this.vars.paused&&this.paused(!0)}});f=B.ticker=new i.Ticker,e=B.prototype,e._dirty=e._gc=e._initted=e._paused=!1,e._totalTime=e._time=0,e._rawPrevTime=-1,e._next=e._last=e._onUpdate=e._timeline=e.timeline=null,e._paused=!1;var C=function(){g&&z()-A>2e3&&f.wake(),setTimeout(C,2e3)};C(),e.play=function(a,b){return null!=a&&this.seek(a,b),this.reversed(!1).paused(!1)},e.pause=function(a,b){return null!=a&&this.seek(a,b),this.paused(!0)},e.resume=function(a,b){return null!=a&&this.seek(a,b),this.paused(!1)},e.seek=function(a,b){return this.totalTime(Number(a),b!==!1)},e.restart=function(a,b){return this.reversed(!1).paused(!1).totalTime(a?-this._delay:0,b!==!1,!0)},e.reverse=function(a,b){return null!=a&&this.seek(a||this.totalDuration(),b),this.reversed(!0).paused(!1)},e.render=function(){},e.invalidate=function(){return this},e.isActive=function(){var a,b=this._timeline,c=this._startTime;return!b||!this._gc&&!this._paused&&b.isActive()&&(a=b.rawTime())>=c&&c+this.totalDuration()/this._timeScale>a},e._enabled=function(a,b){return g||f.wake(),this._gc=!a,this._active=this.isActive(),b!==!0&&(a&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!a&&this.timeline&&this._timeline._remove(this,!0)),!1},e._kill=function(){return this._enabled(!1,!1)},e.kill=function(a,b){return this._kill(a,b),this},e._uncache=function(a){for(var b=a?this:this.timeline;b;)b._dirty=!0,b=b.timeline;return this},e._swapSelfInParams=function(a){for(var b=a.length,c=a.concat();--b>-1;)"{self}"===a[b]&&(c[b]=this);return c},e.eventCallback=function(a,b,c,d){if("on"===(a||"").substr(0,2)){var e=this.vars;if(1===arguments.length)return e[a];null==b?delete e[a]:(e[a]=b,e[a+"Params"]=m(c)&&-1!==c.join("").indexOf("{self}")?this._swapSelfInParams(c):c,e[a+"Scope"]=d),"onUpdate"===a&&(this._onUpdate=b)}return this},e.delay=function(a){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+a-this._delay),this._delay=a,this):this._delay},e.duration=function(a){return arguments.length?(this._duration=this._totalDuration=a,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._timethis._duration?this._duration:a,b)):this._time},e.totalTime=function(a,b,c){if(g||f.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(0>a&&!c&&(a+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var d=this._totalDuration,e=this._timeline;if(a>d&&!c&&(a=d),this._startTime=(this._paused?this._pauseTime:e._time)-(this._reversed?d-a:a)/this._timeScale,e._dirty||this._uncache(!1),e._timeline)for(;e._timeline;)e._timeline._time!==(e._startTime+e._totalTime)/e._timeScale&&e.totalTime(e._totalTime,!0),e=e._timeline}this._gc&&this._enabled(!0,!1),(this._totalTime!==a||0===this._duration)&&(this.render(a,b,!1),H.length&&R())}return this},e.progress=e.totalProgress=function(a,b){return arguments.length?this.totalTime(this.duration()*a,b):this._time/this.duration()},e.startTime=function(a){return arguments.length?(a!==this._startTime&&(this._startTime=a,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,a-this._delay)),this):this._startTime},e.timeScale=function(a){if(!arguments.length)return this._timeScale;if(a=a||j,this._timeline&&this._timeline.smoothChildTiming){var b=this._pauseTime,c=b||0===b?b:this._timeline.totalTime();this._startTime=c-(c-this._startTime)*this._timeScale/a}return this._timeScale=a,this._uncache(!1)},e.reversed=function(a){return arguments.length?(a!=this._reversed&&(this._reversed=a,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},e.paused=function(a){if(!arguments.length)return this._paused;if(a!=this._paused&&this._timeline){g||a||f.wake();var b=this._timeline,c=b.rawTime(),d=c-this._pauseTime;!a&&b.smoothChildTiming&&(this._startTime+=d,this._uncache(!1)),this._pauseTime=a?c:null,this._paused=a,this._active=this.isActive(),!a&&0!==d&&this._initted&&this.duration()&&this.render(b.smoothChildTiming?this._totalTime:(c-this._startTime)/this._timeScale,!0,!0)}return this._gc&&!a&&this._enabled(!0,!1),this};var D=q("core.SimpleTimeline",function(a){B.call(this,0,a),this.autoRemoveChildren=this.smoothChildTiming=!0});e=D.prototype=new B,e.constructor=D,e.kill()._gc=!1,e._first=e._last=null,e._sortChildren=!1,e.add=e.insert=function(a,b){var c,d;if(a._startTime=Number(b||0)+a._delay,a._paused&&this!==a._timeline&&(a._pauseTime=a._startTime+(this.rawTime()-a._startTime)/a._timeScale),a.timeline&&a.timeline._remove(a,!0),a.timeline=a._timeline=this,a._gc&&a._enabled(!0,!0),c=this._last,this._sortChildren)for(d=a._startTime;c&&c._startTime>d;)c=c._prev;return c?(a._next=c._next,c._next=a):(a._next=this._first,this._first=a),a._next?a._next._prev=a:this._last=a,a._prev=c,this._timeline&&this._uncache(!0),this},e._remove=function(a,b){return a.timeline===this&&(b||a._enabled(!1,!0),a.timeline=null,a._prev?a._prev._next=a._next:this._first===a&&(this._first=a._next),a._next?a._next._prev=a._prev:this._last===a&&(this._last=a._prev),this._timeline&&this._uncache(!0)),this},e.render=function(a,b,c){var d,e=this._first;for(this._totalTime=this._time=this._rawPrevTime=a;e;)d=e._next,(e._active||a>=e._startTime&&!e._paused)&&(e._reversed?e.render((e._dirty?e.totalDuration():e._totalDuration)-(a-e._startTime)*e._timeScale,b,c):e.render((a-e._startTime)*e._timeScale,b,c)),e=d},e.rawTime=function(){return g||f.wake(),this._totalTime};var E=q("TweenLite",function(b,c,d){if(B.call(this,c,d),this.render=E.prototype.render,null==b)throw"Cannot tween a null target.";this.target=b="string"!=typeof b?b:E.selector(b)||b;var e,f,g,h=b.jquery||b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType),i=this.vars.overwrite;if(this._overwrite=i=null==i?O[E.defaultOverwrite]:"number"==typeof i?i>>0:O[i],(h||b instanceof Array||b.push&&m(b))&&"number"!=typeof b[0])for(this._targets=g=k.call(b,0),this._propLookup=[],this._siblings=[],e=0;g.length>e;e++)f=g[e],f?"string"!=typeof f?f.length&&f!==a&&f[0]&&(f[0]===a||f[0].nodeType&&f[0].style&&!f.nodeType)?(g.splice(e--,1),this._targets=g=g.concat(k.call(f,0))):(this._siblings[e]=S(f,this,!1),1===i&&this._siblings[e].length>1&&T(f,this,null,1,this._siblings[e])):(f=g[e--]=E.selector(f),"string"==typeof f&&g.splice(e+1,1)):g.splice(e--,1);else this._propLookup={},this._siblings=S(b,this,!1),1===i&&this._siblings.length>1&&T(b,this,null,1,this._siblings);(this.vars.immediateRender||0===c&&0===this._delay&&this.vars.immediateRender!==!1)&&(this._time=-j,this.render(-this._delay))},!0),F=function(b){return b.length&&b!==a&&b[0]&&(b[0]===a||b[0].nodeType&&b[0].style&&!b.nodeType)},G=function(a,b){var c,d={};for(c in a)N[c]||c in b&&"transform"!==c&&"x"!==c&&"y"!==c&&"width"!==c&&"height"!==c&&"className"!==c&&"border"!==c||!(!K[c]||K[c]&&K[c]._autoCSS)||(d[c]=a[c],delete a[c]);a.css=d};e=E.prototype=new B,e.constructor=E,e.kill()._gc=!1,e.ratio=0,e._firstPT=e._targets=e._overwrittenProps=e._startAt=null,e._notifyPluginsOfEnabled=e._lazy=!1,E.version="1.12.1",E.defaultEase=e._ease=new t(null,null,1,1),E.defaultOverwrite="auto",E.ticker=f,E.autoSleep=!0,E.lagSmoothing=function(a,b){f.lagSmoothing(a,b)},E.selector=a.$||a.jQuery||function(b){return a.$?(E.selector=a.$,a.$(b)):a.document?a.document.getElementById("#"===b.charAt(0)?b.substr(1):b):b};var H=[],I={},J=E._internals={isArray:m,isSelector:F,lazyTweens:H},K=E._plugins={},L=J.tweenLookup={},M=0,N=J.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1},O={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},P=B._rootFramesTimeline=new D,Q=B._rootTimeline=new D,R=function(){var a=H.length;for(I={};--a>-1;)c=H[a],c&&c._lazy!==!1&&(c.render(c._lazy,!1,!0),c._lazy=!1);H.length=0};Q._startTime=f.time,P._startTime=f.frame,Q._active=P._active=!0,setTimeout(R,1),B._updateRoot=E.render=function(){var a,b,c;if(H.length&&R(),Q.render((f.time-Q._startTime)*Q._timeScale,!1,!1),P.render((f.frame-P._startTime)*P._timeScale,!1,!1),H.length&&R(),!(f.frame%120)){for(c in L){for(b=L[c].tweens,a=b.length;--a>-1;)b[a]._gc&&b.splice(a,1);0===b.length&&delete L[c]}if(c=Q._first,(!c||c._paused)&&E.autoSleep&&!P._first&&1===f._listeners.tick.length){for(;c&&c._paused;)c=c._next;c||f.sleep()}}},f.addEventListener("tick",B._updateRoot);var S=function(a,b,c){var d,e,f=a._gsTweenID;if(L[f||(a._gsTweenID=f="t"+M++)]||(L[f]={target:a,tweens:[]}),b&&(d=L[f].tweens,d[e=d.length]=b,c))for(;--e>-1;)d[e]===b&&d.splice(e,1);return L[f].tweens},T=function(a,b,c,d,e){var f,g,h,i;if(1===d||d>=4){for(i=e.length,f=0;i>f;f++)if((h=e[f])!==b)h._gc||h._enabled(!1,!1)&&(g=!0);else if(5===d)break;return g}var k,l=b._startTime+j,m=[],n=0,o=0===b._duration;for(f=e.length;--f>-1;)(h=e[f])===b||h._gc||h._paused||(h._timeline!==b._timeline?(k=k||U(b,0,o),0===U(h,k,o)&&(m[n++]=h)):l>=h._startTime&&h._startTime+h.totalDuration()/h._timeScale>l&&((o||!h._initted)&&2e-10>=l-h._startTime||(m[n++]=h)));for(f=n;--f>-1;)h=m[f],2===d&&h._kill(c,a)&&(g=!0),(2!==d||!h._firstPT&&h._initted)&&h._enabled(!1,!1)&&(g=!0);return g},U=function(a,b,c){for(var d=a._timeline,e=d._timeScale,f=a._startTime;d._timeline;){if(f+=d._startTime,e*=d._timeScale,d._paused)return-100;d=d._timeline}return f/=e,f>b?f-b:c&&f===b||!a._initted&&2*j>f-b?j:(f+=a.totalDuration()/a._timeScale/e)>b+j?0:f-b-j};e._init=function(){var a,b,c,d,e,f=this.vars,g=this._overwrittenProps,h=this._duration,i=!!f.immediateRender,j=f.ease;if(f.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),e={};for(d in f.startAt)e[d]=f.startAt[d];if(e.overwrite=!1,e.immediateRender=!0,e.lazy=i&&f.lazy!==!1,e.startAt=e.delay=null,this._startAt=E.to(this.target,0,e),i)if(this._time>0)this._startAt=null;else if(0!==h)return}else if(f.runBackwards&&0!==h)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{c={};for(d in f)N[d]&&"autoCSS"!==d||(c[d]=f[d]);if(c.overwrite=0,c.data="isFromStart",c.lazy=i&&f.lazy!==!1,c.immediateRender=i,this._startAt=E.to(this.target,0,c),i){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1)}if(this._ease=j?j instanceof t?f.easeParams instanceof Array?j.config.apply(j,f.easeParams):j:"function"==typeof j?new t(j,f.easeParams):u[j]||E.defaultEase:E.defaultEase,this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(a=this._targets.length;--a>-1;)this._initProps(this._targets[a],this._propLookup[a]={},this._siblings[a],g?g[a]:null)&&(b=!0);else b=this._initProps(this.target,this._propLookup,this._siblings,g);if(b&&E._onPluginEvent("_onInitAllProps",this),g&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),f.runBackwards)for(c=this._firstPT;c;)c.s+=c.c,c.c=-c.c,c=c._next;this._onUpdate=f.onUpdate,this._initted=!0},e._initProps=function(b,c,d,e){var f,g,h,i,j,k;if(null==b)return!1;I[b._gsTweenID]&&R(),this.vars.css||b.style&&b!==a&&b.nodeType&&K.css&&this.vars.autoCSS!==!1&&G(this.vars,b);for(f in this.vars){if(k=this.vars[f],N[f])k&&(k instanceof Array||k.push&&m(k))&&-1!==k.join("").indexOf("{self}")&&(this.vars[f]=k=this._swapSelfInParams(k,this));else if(K[f]&&(i=new K[f])._onInitTween(b,this.vars[f],this)){for(this._firstPT=j={_next:this._firstPT,t:i,p:"setRatio",s:0,c:1,f:!0,n:f,pg:!0,pr:i._priority},g=i._overwriteProps.length;--g>-1;)c[i._overwriteProps[g]]=this._firstPT;(i._priority||i._onInitAllProps)&&(h=!0),(i._onDisable||i._onEnable)&&(this._notifyPluginsOfEnabled=!0)}else this._firstPT=c[f]=j={_next:this._firstPT,t:b,p:f,f:"function"==typeof b[f],n:f,pg:!1,pr:0},j.s=j.f?b[f.indexOf("set")||"function"!=typeof b["get"+f.substr(3)]?f:"get"+f.substr(3)]():parseFloat(b[f]),j.c="string"==typeof k&&"="===k.charAt(1)?parseInt(k.charAt(0)+"1",10)*Number(k.substr(2)):Number(k)-j.s||0;j&&j._next&&(j._next._prev=j)}return e&&this._kill(e,b)?this._initProps(b,c,d,e):this._overwrite>1&&this._firstPT&&d.length>1&&T(b,this,c,this._overwrite,d)?(this._kill(c,b),this._initProps(b,c,d,e)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(I[b._gsTweenID]=!0),h)},e.render=function(a,b,c){var d,e,f,g,h=this._time,i=this._duration,k=this._rawPrevTime;if(a>=i)this._totalTime=this._time=i,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(d=!0,e="onComplete"),0===i&&(this._initted||!this.vars.lazy||c)&&(this._startTime===this._timeline._duration&&(a=0),(0===a||0>k||k===j)&&k!==a&&(c=!0,k>j&&(e="onReverseComplete")),this._rawPrevTime=g=!b||a||k===a?a:j);else if(1e-7>a)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(0!==h||0===i&&k>0&&k!==j)&&(e="onReverseComplete",d=this._reversed),0>a?(this._active=!1,0===i&&(this._initted||!this.vars.lazy||c)&&(k>=0&&(c=!0),this._rawPrevTime=g=!b||a||k===a?a:j)):this._initted||(c=!0);else if(this._totalTime=this._time=a,this._easeType){var l=a/i,m=this._easeType,n=this._easePower;(1===m||3===m&&l>=.5)&&(l=1-l),3===m&&(l*=2),1===n?l*=l:2===n?l*=l*l:3===n?l*=l*l*l:4===n&&(l*=l*l*l*l),this.ratio=1===m?1-l:2===m?l:.5>a/i?l/2:1-l/2}else this.ratio=this._ease.getRatio(a/i);if(this._time!==h||c){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!c&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=h,this._rawPrevTime=k,H.push(this),this._lazy=a,void 0;this._time&&!d?this.ratio=this._ease.getRatio(this._time/i):d&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(0===this._time?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==h&&a>=0&&(this._active=!0),0===h&&(this._startAt&&(a>=0?this._startAt.render(a,b,c):e||(e="_dummyGS")),this.vars.onStart&&(0!==this._time||0===i)&&(b||this.vars.onStart.apply(this.vars.onStartScope||this,this.vars.onStartParams||s))),f=this._firstPT;f;)f.f?f.t[f.p](f.c*this.ratio+f.s):f.t[f.p]=f.c*this.ratio+f.s,f=f._next;this._onUpdate&&(0>a&&this._startAt&&this._startTime&&this._startAt.render(a,b,c),b||(this._time!==h||d)&&this._onUpdate.apply(this.vars.onUpdateScope||this,this.vars.onUpdateParams||s)),e&&(this._gc||(0>a&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(a,b,c),d&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!b&&this.vars[e]&&this.vars[e].apply(this.vars[e+"Scope"]||this,this.vars[e+"Params"]||s),0===i&&this._rawPrevTime===j&&g!==j&&(this._rawPrevTime=0)))}},e._kill=function(a,b){if("all"===a&&(a=null),null==a&&(null==b||b===this.target))return this._lazy=!1,this._enabled(!1,!1);b="string"!=typeof b?b||this._targets||this.target:E.selector(b)||b;var c,d,e,f,g,h,i,j;if((m(b)||F(b))&&"number"!=typeof b[0])for(c=b.length;--c>-1;)this._kill(a,b[c])&&(h=!0);else{if(this._targets){for(c=this._targets.length;--c>-1;)if(b===this._targets[c]){g=this._propLookup[c]||{},this._overwrittenProps=this._overwrittenProps||[],d=this._overwrittenProps[c]=a?this._overwrittenProps[c]||{}:"all";break}}else{if(b!==this.target)return!1;g=this._propLookup,d=this._overwrittenProps=a?this._overwrittenProps||{}:"all"}if(g){i=a||g,j=a!==d&&"all"!==d&&a!==g&&("object"!=typeof a||!a._tempKill);for(e in i)(f=g[e])&&(f.pg&&f.t._kill(i)&&(h=!0),f.pg&&0!==f.t._overwriteProps.length||(f._prev?f._prev._next=f._next:f===this._firstPT&&(this._firstPT=f._next),f._next&&(f._next._prev=f._prev),f._next=f._prev=null),delete g[e]),j&&(d[e]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return h},e.invalidate=function(){return this._notifyPluginsOfEnabled&&E._onPluginEvent("_onDisable",this),this._firstPT=null,this._overwrittenProps=null,this._onUpdate=null,this._startAt=null,this._initted=this._active=this._notifyPluginsOfEnabled=this._lazy=!1,this._propLookup=this._targets?{}:[],this},e._enabled=function(a,b){if(g||f.wake(),a&&this._gc){var c,d=this._targets;if(d)for(c=d.length;--c>-1;)this._siblings[c]=S(d[c],this,!0);else this._siblings=S(this.target,this,!0)}return B.prototype._enabled.call(this,a,b),this._notifyPluginsOfEnabled&&this._firstPT?E._onPluginEvent(a?"_onEnable":"_onDisable",this):!1},E.to=function(a,b,c){return new E(a,b,c)},E.from=function(a,b,c){return c.runBackwards=!0,c.immediateRender=0!=c.immediateRender,new E(a,b,c)},E.fromTo=function(a,b,c,d){return d.startAt=c,d.immediateRender=0!=d.immediateRender&&0!=c.immediateRender,new E(a,b,d)},E.delayedCall=function(a,b,c,d,e){return new E(b,0,{delay:a,onComplete:b,onCompleteParams:c,onCompleteScope:d,onReverseComplete:b,onReverseCompleteParams:c,onReverseCompleteScope:d,immediateRender:!1,useFrames:e,overwrite:0})},E.set=function(a,b){return new E(a,0,b)},E.getTweensOf=function(a,b){if(null==a)return[];a="string"!=typeof a?a:E.selector(a)||a;var c,d,e,f;if((m(a)||F(a))&&"number"!=typeof a[0]){for(c=a.length,d=[];--c>-1;)d=d.concat(E.getTweensOf(a[c],b));for(c=d.length;--c>-1;)for(f=d[c],e=c;--e>-1;)f===d[e]&&d.splice(c,1)}else for(d=S(a).concat(),c=d.length;--c>-1;)(d[c]._gc||b&&!d[c].isActive())&&d.splice(c,1);return d},E.killTweensOf=E.killDelayedCallsTo=function(a,b,c){"object"==typeof b&&(c=b,b=!1);for(var d=E.getTweensOf(a,b),e=d.length;--e>-1;)d[e]._kill(c,a)};var V=q("plugins.TweenPlugin",function(a,b){this._overwriteProps=(a||"").split(","),this._propName=this._overwriteProps[0],this._priority=b||0,this._super=V.prototype},!0);if(e=V.prototype,V.version="1.10.1",V.API=2,e._firstPT=null,e._addTween=function(a,b,c,d,e,f){var g,h;return null!=d&&(g="number"==typeof d||"="!==d.charAt(1)?Number(d)-c:parseInt(d.charAt(0)+"1",10)*Number(d.substr(2)))?(this._firstPT=h={_next:this._firstPT,t:a,p:b,s:c,c:g,f:"function"==typeof a[b],n:e||b,r:f},h._next&&(h._next._prev=h),h):void 0},e.setRatio=function(a){for(var b,c=this._firstPT,d=1e-6;c;)b=c.c*a+c.s,c.r?b=Math.round(b):d>b&&b>-d&&(b=0),c.f?c.t[c.p](b):c.t[c.p]=b,c=c._next},e._kill=function(a){var b,c=this._overwriteProps,d=this._firstPT;if(null!=a[this._propName])this._overwriteProps=[];else for(b=c.length;--b>-1;)null!=a[c[b]]&&c.splice(b,1);for(;d;)null!=a[d.n]&&(d._next&&(d._next._prev=d._prev),d._prev?(d._prev._next=d._next,d._prev=null):this._firstPT===d&&(this._firstPT=d._next)),d=d._next;return!1},e._roundProps=function(a,b){for(var c=this._firstPT;c;)(a[this._propName]||null!=c.n&&a[c.n.split(this._propName+"_").join("")])&&(c.r=b),c=c._next},E._onPluginEvent=function(a,b){var c,d,e,f,g,h=b._firstPT;if("_onInitAllProps"===a){for(;h;){for(g=h._next,d=e;d&&d.pr>h.pr;)d=d._next;(h._prev=d?d._prev:f)?h._prev._next=h:e=h,(h._next=d)?d._prev=h:f=h,h=g}h=b._firstPT=e}for(;h;)h.pg&&"function"==typeof h.t[a]&&h.t[a]()&&(c=!0),h=h._next;return c},V.activate=function(a){for(var b=a.length;--b>-1;)a[b].API===V.API&&(K[(new a[b])._propName]=a[b]);return!0},p.plugin=function(a){if(!(a&&a.propName&&a.init&&a.API))throw"illegal plugin definition.";var b,c=a.propName,d=a.priority||0,e=a.overwriteProps,f={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_roundProps",initAll:"_onInitAllProps"},g=q("plugins."+c.charAt(0).toUpperCase()+c.substr(1)+"Plugin",function(){V.call(this,c,d),this._overwriteProps=e||[]},a.global===!0),h=g.prototype=new V(c);h.constructor=g,g.API=a.API;for(b in f)"function"==typeof a[b]&&(h[f[b]]=a[b]);return g.version=a.version,V.activate([g]),g},c=a._gsQueue){for(d=0;c.length>d;d++)c[d]();for(e in n)n[e].func||a.console.log("GSAP encountered missing dependency: com.greensock."+e)}g=!1}}(window);(window._gsQueue||(window._gsQueue=[])).push(function(){"use strict";var a=document.documentElement,b=window,c=function(c,d){var e="x"===d?"Width":"Height",f="scroll"+e,g="client"+e,h=document.body;return c===b||c===a||c===h?Math.max(a[f],h[f])-(b["inner"+e]||Math.max(a[g],h[g])):c[f]-c["offset"+e]},d=window._gsDefine.plugin({propName:"scrollTo",API:2,init:function(a,d,e){return this._wdw=a===b,this._target=a,this._tween=e,"object"!=typeof d&&(d={y:d}),this._autoKill=d.autoKill!==!1,this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=d.x?this._addTween(this,"x",this.x,"max"===d.x?c(a,"x"):d.x,"scrollTo_x",!0):this.skipX=!0,null!=d.y?this._addTween(this,"y",this.y,"max"===d.y?c(a,"y"):d.y,"scrollTo_y",!0):this.skipY=!0,!0},set:function(a){this._super.setRatio.call(this,a);var c=this._wdw||!this.skipX?this.getX():this.xPrev,d=this._wdw||!this.skipY?this.getY():this.yPrev,e=d-this.yPrev,f=c-this.xPrev;this._autoKill&&(!this.skipX&&(f>7||-7>f)&&(this.skipX=!0),!this.skipY&&(e>7||-7>e)&&(this.skipY=!0),this.skipX&&this.skipY&&this._tween.kill()),this._wdw?b.scrollTo(this.skipX?c:this.x,this.skipY?d:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),e=d.prototype;d.max=c,e.getX=function(){return this._wdw?null!=b.pageXOffset?b.pageXOffset:null!=a.scrollLeft?a.scrollLeft:document.body.scrollLeft:this._target.scrollLeft},e.getY=function(){return this._wdw?null!=b.pageYOffset?b.pageYOffset:null!=a.scrollTop?a.scrollTop:document.body.scrollTop:this._target.scrollTop},e._kill=function(a){return a.scrollTo_x&&(this.skipX=!0),a.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,a)}}),window._gsDefine&&window._gsQueue.pop()();(function(a){"use strict";var b=function(b,c){this.el=a(b);this.options=a.extend({},a.fn.typed.defaults,c);this.text=this.el.text();this.typeSpeed=this.options.typeSpeed;this.startDelay=this.options.startDelay;this.backSpeed=this.options.backSpeed;this.backDelay=this.options.backDelay;this.strings=this.options.strings;this.strPos=0;this.arrayPos=0;this.string=this.strings[this.arrayPos];this.stopNum=0;this.loop=this.options.loop;this.loopCount=this.options.loopCount;this.curLoop=1;if(this.loop===false){this.stopArray=this.strings.length-1}else{this.stopArray=this.strings.length}this.build()};b.prototype={constructor:b,init:function(){var a=this;setTimeout(function(){a.typewrite(a.string,a.strPos)},a.startDelay)},build:function(){this.init()},typewrite:function(a,b){var c=Math.round(Math.random()*(100-30))+this.typeSpeed;var d=this;setTimeout(function(){if(d.arrayPosa.length&&d.arrayPosd.stopNum){b--;d.backspace(a,b)}else if(b<=d.stopNum){clearTimeout(c);var c=d.arrayPos=d.arrayPos+1;d.typewrite(d.strings[d.arrayPos],b)}},c)}};a.fn.typed=function(c){return this.each(function(){var d=a(this),e=d.data("typed"),f=typeof c=="object"&&c;if(!e)d.data("typed",e=new b(this,f));if(typeof c=="string")e[c]()})};a.fn.typed.defaults={strings:["These are the default values...","You know what you should do?","Use your own!","Have a great day!"],typeSpeed:0,startDelay:0,backSpeed:0,backDelay:500,loop:false,loopCount:false,callback:function(){null},onStringTyped:function(){null}}})(window.jQuery);(function(a){a.flexslider=function(b,c){var d=a(b),e=a.extend({},a.flexslider.defaults,c),f=e.namespace,g="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,h=g?"touchend":"click",i=e.direction==="vertical",j=e.reverse,k=e.itemWidth>0,l=e.animation==="fade",m=e.asNavFor!=="",n={};a.data(b,"flexslider",d);n={init:function(){d.animating=false;d.currentSlide=e.startAt;d.animatingTo=d.currentSlide;d.atEnd=d.currentSlide===0||d.currentSlide===d.last;d.containerSelector=e.selector.substr(0,e.selector.search(" "));d.slides=a(e.selector,d);d.container=a(d.containerSelector,d);d.count=d.slides.length;d.syncExists=a(e.sync).length>0;if(e.animation==="slide")e.animation="swing";d.prop=i?"top":"marginLeft";d.args={};d.manualPause=false;d.transitions=!e.video&&!l&&e.useCSS&&function(){var a=document.createElement("div"),b=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var c in b){if(a.style[b[c]]!==undefined){d.pfx=b[c].replace("Perspective","").toLowerCase();d.prop="-"+d.pfx+"-transform";return true}}return false}();if(e.controlsContainer!=="")d.controlsContainer=a(e.controlsContainer).length>0&&a(e.controlsContainer);if(e.manualControls!=="")d.manualControls=a(e.manualControls).length>0&&a(e.manualControls);if(e.randomize){d.slides.sort(function(){return Math.round(Math.random())-.5});d.container.empty().append(d.slides)}d.doMath();if(m)n.asNav.setup();d.setup("init");if(e.controlNav)n.controlNav.setup();if(e.directionNav)n.directionNav.setup();if(e.keyboard&&(a(d.containerSelector).length===1||e.multipleKeyboard)){a(document).bind("keyup",function(a){var b=a.keyCode;if(!d.animating&&(b===39||b===37)){var c=b===39?d.getTarget("next"):b===37?d.getTarget("prev"):false;d.flexAnimate(c,e.pauseOnAction)}})}if(e.mousewheel){d.bind("mousewheel",function(a,b,c,f){a.preventDefault();var g=b<0?d.getTarget("next"):d.getTarget("prev");d.flexAnimate(g,e.pauseOnAction)})}if(e.pausePlay)n.pausePlay.setup();if(e.slideshow){if(e.pauseOnHover){d.hover(function(){if(!d.manualPlay&&!d.manualPause)d.pause()},function(){if(!d.manualPause&&!d.manualPlay)d.play()})}e.initDelay>0?setTimeout(d.play,e.initDelay):d.play()}if(g&&e.touch)n.touch();if(!l||l&&e.smoothHeight)a(window).bind("resize focus",n.resize);setTimeout(function(){e.start(d)},200)},asNav:{setup:function(){d.asNav=true;d.animatingTo=Math.floor(d.currentSlide/d.move);d.currentItem=d.currentSlide;d.slides.removeClass(f+"active-slide").eq(d.currentItem).addClass(f+"active-slide");d.slides.click(function(b){b.preventDefault();var c=a(this),f=c.index();if(!a(e.asNavFor).data("flexslider").animating&&!c.hasClass("active")){d.direction=d.currentItem');if(d.pagingCount>1){for(var j=0;j':'';d.controlNavScaffold.append("
  • "+i+"
  • ");c++}}d.controlsContainer?a(d.controlsContainer).append(d.controlNavScaffold):d.append(d.controlNavScaffold);n.controlNav.set();n.controlNav.active();d.controlNavScaffold.delegate("a, img",h,function(b){b.preventDefault();var c=a(this),g=d.controlNav.index(c);if(!c.hasClass(f+"active")){d.direction=g>d.currentSlide?"next":"prev";d.flexAnimate(g,e.pauseOnAction)}});if(g){d.controlNavScaffold.delegate("a","click touchstart",function(a){a.preventDefault()})}},setupManual:function(){d.controlNav=d.manualControls;n.controlNav.active();d.controlNav.live(h,function(b){b.preventDefault();var c=a(this),g=d.controlNav.index(c);if(!c.hasClass(f+"active")){g>d.currentSlide?d.direction="next":d.direction="prev";d.flexAnimate(g,e.pauseOnAction)}});if(g){d.controlNav.live("click touchstart",function(a){a.preventDefault()})}},set:function(){var b=e.controlNav==="thumbnails"?"img":"a";d.controlNav=a("."+f+"control-nav li "+b,d.controlsContainer?d.controlsContainer:d)},active:function(){d.controlNav.removeClass(f+"active").eq(d.animatingTo).addClass(f+"active")},update:function(b,c){if(d.pagingCount>1&&b==="add"){d.controlNavScaffold.append(a("
  • "+d.count+"
  • "))}else if(d.pagingCount===1){d.controlNavScaffold.find("li").remove()}else{d.controlNav.eq(c).closest("li").remove()}n.controlNav.set();d.pagingCount>1&&d.pagingCount!==d.controlNav.length?d.update(c,b):n.controlNav.active()}},directionNav:{setup:function(){var b=a('");if(d.controlsContainer){a(d.controlsContainer).append(b);d.directionNav=a("."+f+"direction-nav li a",d.controlsContainer)}else{d.append(b);d.directionNav=a("."+f+"direction-nav li a",d)}n.directionNav.update();d.directionNav.bind(h,function(b){b.preventDefault();var c=a(this).hasClass(f+"next")?d.getTarget("next"):d.getTarget("prev");d.flexAnimate(c,e.pauseOnAction)});if(g){d.directionNav.bind("click touchstart",function(a){a.preventDefault()})}},update:function(){var a=f+"disabled";if(d.pagingCount===1){d.directionNav.addClass(a)}else if(!e.animationLoop){if(d.animatingTo===0){ d.directionNav.removeClass(a).filter("."+f+"prev").addClass(a)}else if(d.animatingTo===d.last){d.directionNav.removeClass(a).filter("."+f+"next").addClass(a)}else{d.directionNav.removeClass(a)}}else{d.directionNav.removeClass(a)}}},pausePlay:{setup:function(){var b=a('
    ');if(d.controlsContainer){d.controlsContainer.append(b);d.pausePlay=a("."+f+"pauseplay a",d.controlsContainer)}else{d.append(b);d.pausePlay=a("."+f+"pauseplay a",d)}n.pausePlay.update(e.slideshow?f+"pause":f+"play");d.pausePlay.bind(h,function(b){b.preventDefault();if(a(this).hasClass(f+"pause")){d.manualPause=true;d.manualPlay=false;d.pause()}else{d.manualPause=false;d.manualPlay=true;d.play()}});if(g){d.pausePlay.bind("click touchstart",function(a){a.preventDefault()})}},update:function(a){a==="play"?d.pausePlay.removeClass(f+"pause").addClass(f+"play").text(e.playText):d.pausePlay.removeClass(f+"play").addClass(f+"pause").text(e.pauseText)}},touch:function(){var a,c,f,g,h,m,n=false;b.addEventListener("touchstart",o,false);function o(h){if(d.animating){h.preventDefault()}else if(h.touches.length===1){d.pause();g=i?d.h:d.w;m=Number(new Date);f=k&&j&&d.animatingTo===d.last?0:k&&j?d.limit-(d.itemW+e.itemMargin)*d.move*d.animatingTo:k&&d.currentSlide===d.last?d.limit:k?(d.itemW+e.itemMargin)*d.move*d.currentSlide:j?(d.last-d.currentSlide+d.cloneOffset)*g:(d.currentSlide+d.cloneOffset)*g;a=i?h.touches[0].pageY:h.touches[0].pageX;c=i?h.touches[0].pageX:h.touches[0].pageY;b.addEventListener("touchmove",p,false);b.addEventListener("touchend",q,false)}}function p(b){h=i?a-b.touches[0].pageY:a-b.touches[0].pageX;n=i?Math.abs(h)500){b.preventDefault();if(!l&&d.transitions){if(!e.animationLoop){h=h/(d.currentSlide===0&&h<0||d.currentSlide===d.last&&h>0?Math.abs(h)/g+2:1)}d.setProps(f+h,"setTouch")}}}function q(i){b.removeEventListener("touchmove",p,false);if(d.animatingTo===d.currentSlide&&!n&&!(h===null)){var k=j?-h:h,o=k>0?d.getTarget("next"):d.getTarget("prev");if(d.canAdvance(o)&&(Number(new Date)-m<550&&Math.abs(k)>50||Math.abs(k)>g/2)){d.flexAnimate(o,e.pauseOnAction)}else{if(!l)d.flexAnimate(d.currentSlide,e.pauseOnAction,true)}}b.removeEventListener("touchend",q,false);a=null;c=null;h=null;f=null}},resize:function(){if(!d.animating&&d.is(":visible")){if(!k)d.doMath();if(l){n.smoothHeight()}else if(k){d.slides.width(d.computedW);d.update(d.pagingCount);d.setProps()}else if(i){d.viewport.height(d.h);d.setProps(d.h,"setTotal")}else{if(e.smoothHeight)n.smoothHeight();d.newSlides.width(d.computedW);d.setProps(d.computedW,"setTotal")}}},smoothHeight:function(a){if(!i||l){var b=l?d:d.viewport;a?b.animate({height:d.slides.eq(d.animatingTo).height()},a):b.height(d.slides.eq(d.animatingTo).height())}},sync:function(b){var c=a(e.sync).data("flexslider"),f=d.animatingTo;switch(b){case"animate":c.flexAnimate(f,e.pauseOnAction,false,true);break;case"play":if(!c.playing&&!c.asNav){c.play()}break;case"pause":c.pause();break}}};d.flexAnimate=function(b,c,h,o,p){if(m&&d.pagingCount===1)d.direction=d.currentItemd.w?e.itemMargin*2:e.itemMargin;u=(d.itemW+s)*d.move*d.animatingTo;t=u>d.limit&&d.visible!==1?d.limit:u}else if(d.currentSlide===0&&b===d.count-1&&e.animationLoop&&d.direction!=="next"){t=j?(d.count+d.cloneOffset)*r:0}else if(d.currentSlide===d.last&&b===0&&e.animationLoop&&d.direction!=="prev"){t=j?0:(d.count+1)*r}else{t=j?(d.count-1-b+d.cloneOffset)*r:(b+d.cloneOffset)*r}d.setProps(t,"",e.animationSpeed);if(d.transitions){if(!e.animationLoop||!d.atEnd){d.animating=false;d.currentSlide=d.animatingTo}d.container.unbind("webkitTransitionEnd transitionend");d.container.bind("webkitTransitionEnd transitionend",function(){d.wrapup(r)})}else{d.container.animate(d.args,e.animationSpeed,e.easing,function(){d.wrapup(r)})}}else{if(!g){d.slides.eq(d.currentSlide).fadeOut(e.animationSpeed,e.easing);d.slides.eq(b).fadeIn(e.animationSpeed,e.easing,d.wrapup)}else{d.slides.eq(d.currentSlide).css({opacity:0,zIndex:1});d.slides.eq(b).css({opacity:1,zIndex:2});d.animating=false;d.currentSlide=d.animatingTo}}if(e.smoothHeight)n.smoothHeight(e.animationSpeed)}};d.wrapup=function(a){if(!l&&!k){if(d.currentSlide===0&&d.animatingTo===d.last&&e.animationLoop){d.setProps(a,"jumpEnd")}else if(d.currentSlide===d.last&&d.animatingTo===0&&e.animationLoop){d.setProps(a,"jumpStart")}}d.animating=false;d.currentSlide=d.animatingTo;e.after(d)};d.animateSlides=function(){if(!d.animating)d.flexAnimate(d.getTarget("next"))};d.pause=function(){clearInterval(d.animatedSlides);d.playing=false;if(e.pausePlay)n.pausePlay.update("play");if(d.syncExists)n.sync("pause")};d.play=function(){d.animatedSlides=setInterval(d.animateSlides,e.slideshowSpeed);d.playing=true;if(e.pausePlay)n.pausePlay.update("pause");if(d.syncExists)n.sync("play")};d.canAdvance=function(a,b){var c=m?d.pagingCount-1:d.last;return b?true:m&&d.currentItem===d.count-1&&a===0&&d.direction==="prev"?true:m&&d.currentItem===0&&a===d.pagingCount-1&&d.direction!=="next"?false:a===d.currentSlide&&!m?false:e.animationLoop?true:d.atEnd&&d.currentSlide===0&&a===c&&d.direction!=="next"?false:d.atEnd&&d.currentSlide===c&&a===0&&d.direction==="next"?false:true};d.getTarget=function(a){d.direction=a;if(a==="next"){return d.currentSlide===d.last?0:d.currentSlide+1}else{return d.currentSlide===0?d.last:d.currentSlide-1}};d.setProps=function(a,b,c){var f=function(){var c=a?a:(d.itemW+e.itemMargin)*d.move*d.animatingTo,f=function(){if(k){return b==="setTouch"?a:j&&d.animatingTo===d.last?0:j?d.limit-(d.itemW+e.itemMargin)*d.move*d.animatingTo:d.animatingTo===d.last?d.limit:c}else{switch(b){case"setTotal":return j?(d.count-1-d.currentSlide+d.cloneOffset)*a:(d.currentSlide+d.cloneOffset)*a;case"setTouch":return j?a:a;case"jumpEnd":return j?a:d.count*a;case"jumpStart":return j?d.count*a:a;default:return a}}}();return f*-1+"px"}();if(d.transitions){f=i?"translate3d(0,"+f+",0)":"translate3d("+f+",0,0)";c=c!==undefined?c/1e3+"s":"0s";d.container.css("-"+d.pfx+"-transition-duration",c)}d.args[d.prop]=f;if(d.transitions||c===undefined)d.container.css(d.args)};d.setup=function(b){if(!l){var c,h;if(b==="init"){d.viewport=a('
    ').css({overflow:"hidden",position:"relative"}).appendTo(d).append(d.container);d.cloneCount=0;d.cloneOffset=0;if(j){h=a.makeArray(d.slides).reverse();d.slides=a(h);d.container.empty().append(d.slides)}}if(e.animationLoop&&!k){d.cloneCount=2;d.cloneOffset=1;if(b!=="init")d.container.find(".clone").remove();d.container.append(d.slides.first().clone().addClass("clone")).prepend(d.slides.last().clone().addClass("clone"))}d.newSlides=a(e.selector,d);c=j?d.count-1-d.currentSlide+d.cloneOffset:d.currentSlide+d.cloneOffset;if(i&&!k){d.container.height((d.count+d.cloneCount)*200+"%").css("position","absolute").width("100%");setTimeout(function(){d.newSlides.css({display:"block"});d.doMath();d.viewport.height(d.h);d.setProps(c*d.h,"init")},b==="init"?100:0)}else{d.container.width((d.count+d.cloneCount)*200+"%");d.setProps(c*d.computedW,"init");setTimeout(function(){d.doMath();d.newSlides.css({width:d.computedW,float:"left",display:"block"});if(e.smoothHeight)n.smoothHeight()},b==="init"?100:0)}}else{d.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"});if(b==="init"){if(!g){d.slides.eq(d.currentSlide).fadeIn(e.animationSpeed,e.easing)}else{d.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+e.animationSpeed/1e3+"s ease",zIndex:1}).eq(d.currentSlide).css({opacity:1,zIndex:2})}}if(e.smoothHeight)n.smoothHeight()}if(!k)d.slides.removeClass(f+"active-slide").eq(d.currentSlide).addClass(f+"active-slide")};d.doMath=function(){var a=d.slides.first(),b=e.itemMargin,c=e.minItems,f=e.maxItems;d.w=d.width();d.h=a.height();d.boxPadding=a.outerWidth()-a.width();if(k){d.itemT=e.itemWidth+b;d.minW=c?c*d.itemT:d.w;d.maxW=f?f*d.itemT:d.w;d.itemW=d.minW>d.w?(d.w-b*c)/c:d.maxWd.w?d.w:e.itemWidth;d.visible=Math.floor(d.w/(d.itemW+b));d.move=e.move>0&&e.moved.w?(d.itemW+b*2)*d.count-d.w-b:(d.itemW+b)*d.count-d.w-b}else{d.itemW=d.w;d.pagingCount=d.count;d.last=d.count-1}d.computedW=d.itemW-d.boxPadding};d.update=function(a,b){d.doMath();if(!k){if(ad.controlNav.length){n.controlNav.update("add")}else if(b==="remove"&&!k||d.pagingCountd.last){d.currentSlide-=1;d.animatingTo-=1}n.controlNav.update("remove",d.last)}}if(e.directionNav)n.directionNav.update()};d.addSlide=function(b,c){var f=a(b);d.count+=1;d.last=d.count-1;if(i&&j){c!==undefined?d.slides.eq(d.count-c).after(f):d.container.prepend(f)}else{c!==undefined?d.slides.eq(c).before(f):d.container.append(f)}d.update(c,"add");d.slides=a(e.selector+":not(.clone)",d);d.setup();e.added(d)};d.removeSlide=function(b){var c=isNaN(b)?d.slides.index(a(b)):b;d.count-=1;d.last=d.count-1;if(isNaN(b)){a(b,d.slides).remove()}else{i&&j?d.slides.eq(d.last).remove():d.slides.eq(b).remove()}d.doMath();d.update(c,"remove");d.slides=a(e.selector+":not(.clone)",d);d.setup();e.removed(d)};n.init()};a.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:false,animationLoop:true,smoothHeight:false,startAt:0,slideshow:true,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:false,pauseOnAction:true,pauseOnHover:false,useCSS:true,touch:true,video:false,controlNav:true,directionNav:true,prevText:"Previous",nextText:"Next",directionNavArrowsLeft:'',directionNavArrowsRight:'',keyboard:true,multipleKeyboard:false,mousewheel:false,pausePlay:false,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:0,maxItems:0,move:0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){}};a.fn.flexslider=function(b){if(b===undefined)b={};if(typeof b==="object"){return this.each(function(){var c=a(this),d=b.selector?b.selector:".slides > li",e=c.find(d);if(e.length===1){e.fadeIn(400);if(b.start)b.start(c)}else if(c.data("flexslider")===undefined){new a.flexslider(this,b)}})}else{var c=a(this).data("flexslider");switch(b){case"play":c.play();break;case"pause":c.pause();break;case"next":c.flexAnimate(c.getTarget("next"),true);break;case"prev":case"previous":c.flexAnimate(c.getTarget("prev"),true);break;default:if(typeof b==="number")c.flexAnimate(b,true)}}}})(jQuery);(function(a){var b="waitForImages";a.waitForImages={hasImageProperties:["backgroundImage","listStyleImage","borderImage","borderCornerImage","cursor"]};a.expr[":"].uncached=function(b){if(!a(b).is('img[src!=""]')){return false}var c=new Image;c.src=b.src;return!c.complete};a.fn.waitForImages=function(c,d,e){var f=0;var g=0;if(a.isPlainObject(arguments[0])){e=arguments[0].waitForAll;d=arguments[0].each;c=arguments[0].finished}c=c||a.noop;d=d||a.noop;e=!!e;if(!a.isFunction(c)||!a.isFunction(d)){throw new TypeError("An invalid callback was supplied.")}return this.each(function(){var h=a(this);var i=[];var j=a.waitForImages.hasImageProperties||[];var k=/url\(\s*(['"]?)(.*?)\1\s*\)/g;if(e){h.find("*").addBack().each(function(){var b=a(this);if(b.is("img:uncached")){i.push({src:b.attr("src"),element:b[0]})}a.each(j,function(a,c){var d=b.css(c);var e;if(!d){return true}while(e=k.exec(d)){i.push({src:e[2],element:b[0]})}})})}else{h.find("img:uncached").each(function(){i.push({src:this.src,element:this})})}f=i.length;g=0;if(f===0){c.call(h[0])}a.each(i,function(e,i){var j=new Image;a(j).on("load."+b+" error."+b,function(a){g++;d.call(i.element,g,f,a.type=="load");if(g==f){c.call(h[0]);return false}});j.src=i.src})})}})(jQuery);(function(a,b,c){"use strict";var d=a.document,e=a.Modernizr,f=function(a){return a.charAt(0).toUpperCase()+a.slice(1)},g="Moz Webkit O Ms".split(" "),h=function(a){var b=d.documentElement.style,c;if(typeof b[a]=="string")return a;a=f(a);for(var e=0,h=g.length;e"+d+"{#modernizr{height:3px}}"+"").appendTo("head"),f=b('
    ').appendTo("html");a=f.height()===3,f.remove(),e.remove()}return a},csstransitions:function(){return!!j}},l;if(e)for(l in k)e.hasOwnProperty(l)||e.addTest(l,k[l]);else{e=a.Modernizr={_version:"1.6ish: miniModernizr for Isotope"};var m=" ",n;for(l in k)n=k[l](),e[l]=n,m+=" "+(n?"":"no-")+l;b("html").addClass(m)}if(e.csstransforms){var o=e.csstransforms3d?{translate:function(a){return"translate3d("+a[0]+"px, "+a[1]+"px, 0) "},scale:function(a){return"scale3d("+a+", "+a+", 1) "}}:{translate:function(a){return"translate("+a[0]+"px, "+a[1]+"px) "},scale:function(a){return"scale("+a+") "}},p=function(a,c,d){var e=b.data(a,"isoTransform")||{},f={},g,h={},j;f[c]=d,b.extend(e,f);for(g in e)j=e[g],h[g]=o[g](j);var k=h.translate||"",l=h.scale||"",m=k+l;b.data(a,"isoTransform",e),a.style[i]=m};b.cssNumber.scale=!0,b.cssHooks.scale={set:function(a,b){p(a,"scale",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.scale?d.scale:1}},b.fx.step.scale=function(a){b.cssHooks.scale.set(a.elem,a.now+a.unit)},b.cssNumber.translate=!0,b.cssHooks.translate={set:function(a,b){p(a,"translate",b)},get:function(a,c){var d=b.data(a,"isoTransform");return d&&d.translate?d.translate:[0,0]}}}var q,r;e.csstransitions&&(q={WebkitTransitionProperty:"webkitTransitionEnd",MozTransitionProperty:"transitionend",OTransitionProperty:"oTransitionEnd",transitionProperty:"transitionEnd"}[j],r=h("transitionDuration"));var s=b.event,t;s.special.smartresize={setup:function(){b(this).bind("resize",s.special.smartresize.handler)},teardown:function(){b(this).unbind("resize",s.special.smartresize.handler)},handler:function(a,b){var c=this,d=arguments;a.type="smartresize",t&&clearTimeout(t),t=setTimeout(function(){jQuery.event.handle.apply(c,d)},b==="execAsap"?0:100)}},b.fn.smartresize=function(a){return a?this.bind("smartresize",a):this.trigger("smartresize",["execAsap"])},b.Isotope=function(a,c,d){this.element=b(c),this._create(a),this._init(d)};var u=["width","height"],v=b(a);b.Isotope.settings={resizable:!0,layoutMode:"masonry",containerClass:"isotope",itemClass:"isotope-item",hiddenClass:"isotope-hidden",hiddenStyle:{opacity:0,scale:.001},visibleStyle:{opacity:1,scale:1},containerStyle:{position:"relative",overflow:"hidden"},animationEngine:"best-available",animationOptions:{queue:!1,duration:800},sortBy:"original-order",sortAscending:!0,resizesContainer:!0,transformsEnabled:!b.browser.opera,itemPositionDataEnabled:!1},b.Isotope.prototype={_create:function(a){this.options=b.extend({},b.Isotope.settings,a),this.styleQueue=[],this.elemCount=0;var c=this.element[0].style;this.originalStyle={};var d=u.slice(0);for(var e in this.options.containerStyle)d.push(e);for(var f=0,g=d.length;fg?1:f0&&(i=function(a,b){b.$el[d](b.style,f).one(q,k)},j=!1)}}b.each(this.styleQueue,i),j&&k(),this.styleQueue=[]},resize:function(){this["_"+this.options.layoutMode+"ResizeChanged"]()&&this.reLayout()},reLayout:function(a){this["_"+this.options.layoutMode+"Reset"](),this.layout(this.$filteredAtoms,a)},addItems:function(a,b){var c=this._getAtoms(a);this.$allAtoms=this.$allAtoms.add(c),b&&b(c)},insert:function(a,b){this.element.append(a);var c=this;this.addItems(a,function(a){var d=c._filter(a);c._addHideAppended(d),c._sort(),c.reLayout(),c._revealAppended(d,b)})},appended:function(a,b){var c=this;this.addItems(a,function(a){c._addHideAppended(a),c.layout(a),c._revealAppended(a,b)})},_addHideAppended:function(a){this.$filteredAtoms=this.$filteredAtoms.add(a),a.addClass("no-transition"),this._isInserting=!0,this.styleQueue.push({$el:a,style:this.options.hiddenStyle})},_revealAppended:function(a,b){var c=this;setTimeout(function(){a.removeClass("no-transition"),c.styleQueue.push({$el:a,style:c.options.visibleStyle}),c._isInserting=!1,c._processStyleQueue(a,b)},10)},reloadItems:function(){this.$allAtoms=this._getAtoms(this.element.children())},remove:function(a,b){var c=this,d=function(){c.$allAtoms=c.$allAtoms.not(a),a.remove(),b&&b.call(c.element)};a.filter(":not(."+this.options.hiddenClass+")").length?(this.styleQueue.push({$el:a,style:this.options.hiddenStyle}),this.$filteredAtoms=this.$filteredAtoms.not(a),this._sort(),this.reLayout(d)):d()},shuffle:function(a){this.updateSortData(this.$allAtoms),this.options.sortBy="random",this._sort(),this.reLayout(a)},destroy:function(){var a=this.usingTransforms,b=this.options;this.$allAtoms.removeClass(b.hiddenClass+" "+b.itemClass).each(function(){var b=this.style;b.position="",b.top="",b.left="",b.opacity="",a&&(b[i]="")});var c=this.element[0].style;for(var d in this.originalStyle)c[d]=this.originalStyle[d];this.element.unbind(".isotope").undelegate("."+b.hiddenClass,"click").removeClass(b.containerClass).removeData("isotope"),v.unbind(".isotope")},_getSegments:function(a){var b=this.options.layoutMode,c=a?"rowHeight":"columnWidth",d=a?"height":"width",e=a?"rows":"cols",g=this.element[d](),h,i=this.options[b]&&this.options[b][c]||this.$filteredAtoms["outer"+f(d)](!0)||g;h=Math.floor(g/i),h=Math.max(h,1),this[b][e]=h,this[b][c]=i},_checkIfSegmentsChanged:function(a){var b=this.options.layoutMode,c=a?"rows":"cols",d=this[b][c];return this._getSegments(a),this[b][c]!==d},_masonryReset:function(){this.masonry={},this._getSegments();var a=this.masonry.cols;this.masonry.colYs=[];while(a--)this.masonry.colYs.push(0)},_masonryLayout:function(a){var c=this,d=c.masonry;if(typeof a==="undefined")return;a.each(function(){var a=b(this),e=Math.ceil(a.outerWidth(!0)/d.columnWidth);e=Math.min(e,d.cols);if(e===1)c._masonryPlaceBrick(a,d.colYs);else{var f=d.cols+1-e,g=[],h,i;for(i=0;id&&(e.x=0,e.y=e.height),c._pushPosition(a,e.x,e.y),e.height=Math.max(e.y+g,e.height),e.x+=f})},_fitRowsGetContainerSize:function(){return{height:this.fitRows.height}},_fitRowsResizeChanged:function(){return!0},_cellsByRowReset:function(){this.cellsByRow={index:0},this._getSegments(),this._getSegments(!0)},_cellsByRowLayout:function(a){var c=this,d=this.cellsByRow;a.each(function(){var a=b(this),e=d.index%d.cols,f=Math.floor(d.index/d.cols),g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByRowGetContainerSize:function(){return{height:Math.ceil(this.$filteredAtoms.length/this.cellsByRow.cols)*this.cellsByRow.rowHeight+this.offset.top}},_cellsByRowResizeChanged:function(){return this._checkIfSegmentsChanged()},_straightDownReset:function(){this.straightDown={y:0}},_straightDownLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,0,c.straightDown.y),c.straightDown.y+=d.outerHeight(!0)})},_straightDownGetContainerSize:function(){return{height:this.straightDown.y}},_straightDownResizeChanged:function(){return!0},_masonryHorizontalReset:function(){this.masonryHorizontal={},this._getSegments(!0);var a=this.masonryHorizontal.rows;this.masonryHorizontal.rowXs=[];while(a--)this.masonryHorizontal.rowXs.push(0)},_masonryHorizontalLayout:function(a){var c=this,d=c.masonryHorizontal;a.each(function(){var a=b(this),e=Math.ceil(a.outerHeight(!0)/d.rowHeight);e=Math.min(e,d.rows);if(e===1)c._masonryHorizontalPlaceBrick(a,d.rowXs);else{var f=d.rows+1-e,g=[],h,i;for(i=0;id&&(e.x=e.width,e.y=0),c._pushPosition(a,e.x,e.y),e.width=Math.max(e.x+f,e.width),e.y+=g})},_fitColumnsGetContainerSize:function(){return{width:this.fitColumns.width}},_fitColumnsResizeChanged:function(){return!0},_cellsByColumnReset:function(){this.cellsByColumn={index:0},this._getSegments(),this._getSegments(!0)},_cellsByColumnLayout:function(a){var c=this,d=this.cellsByColumn;a.each(function(){var a=b(this),e=Math.floor(d.index/d.rows),f=d.index%d.rows,g=(e+.5)*d.columnWidth-a.outerWidth(!0)/2,h=(f+.5)*d.rowHeight-a.outerHeight(!0)/2;c._pushPosition(a,g,h),d.index++})},_cellsByColumnGetContainerSize:function(){return{width:Math.ceil(this.$filteredAtoms.length/this.cellsByColumn.rows)*this.cellsByColumn.columnWidth}},_cellsByColumnResizeChanged:function(){return this._checkIfSegmentsChanged(!0)},_straightAcrossReset:function(){this.straightAcross={x:0}},_straightAcrossLayout:function(a){var c=this;a.each(function(a){var d=b(this);c._pushPosition(d,c.straightAcross.x,0),c.straightAcross.x+=d.outerWidth(!0)})},_straightAcrossGetContainerSize:function(){return{width:this.straightAcross.x}},_straightAcrossResizeChanged:function(){return!0}},b.fn.imagesLoaded=function(a){function c(){a.call(e,f)}function d(a){var e=a.target;e.src!==h&&b.inArray(e,i)===-1&&(i.push(e),--g<=0&&(setTimeout(c),f.unbind(".imagesLoaded",d)))}var e=this,f=e.find("img").add(e.filter("img")),g=f.length,h="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///ywAAAAAAQABAAACAUwAOw==",i=[];return g||c(),f.bind("load.imagesLoaded error.imagesLoaded",d).each(function(){var a=this.src;this.src=h,this.src=a}),e};var w=function(b){a.console&&a.console.error(b)};b.fn.isotope=function(a,c){if(this instanceof Window)return;if(typeof a=="string"){var d=Array.prototype.slice.call(arguments,1);this.each(function(){var c=b.data(this,"isotope");if(!c){w("cannot call methods on isotope prior to initialization; attempted to call method '"+a+"'");return}if(!b.isFunction(c[a])||a.charAt(0)==="_"){w("no such method '"+a+"' for isotope instance");return}c[a].apply(c,d)})}else this.each(function(){var d=b.data(this,"isotope");d?(d.option(a),d._init(c)):b.data(this,"isotope",new b.Isotope(a,this,c))});return this}})(window,jQuery);!function(a,b){"function"==typeof define&&define.amd?define("ev-emitter/ev-emitter",b):"object"==typeof module&&module.exports?module.exports=b():a.EvEmitter=b()}(this,function(){function a(){}var b=a.prototype;return b.on=function(a,b){if(a&&b){var c=this._events=this._events||{},d=c[a]=c[a]||[];return-1==d.indexOf(b)&&d.push(b),this}},b.once=function(a,b){if(a&&b){this.on(a,b);var c=this._onceEvents=this._onceEvents||{},d=c[a]=c[a]||[];return d[b]=!0,this}},b.off=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=c.indexOf(b);return-1!=d&&c.splice(d,1),this}},b.emitEvent=function(a,b){var c=this._events&&this._events[a];if(c&&c.length){var d=0,e=c[d];b=b||[];for(var f=this._onceEvents&&this._onceEvents[a];e;){var g=f&&f[e];g&&(this.off(a,e),delete f[e]),e.apply(this,b),d+=g?0:1,e=c[d]}return this}},a}),function(a,b){"use strict";"function"==typeof define&&define.amd?define(["ev-emitter/ev-emitter"],function(c){return b(a,c)}):"object"==typeof module&&module.exports?module.exports=b(a,require("ev-emitter")):a.imagesLoaded=b(a,a.EvEmitter)}(window,function(a,b){function c(a,b){for(var c in b)a[c]=b[c];return a}function d(a){var b=[];if(Array.isArray(a))b=a;else if("number"==typeof a.length)for(var c=0;c-1;c.transition=d("transition");c.transitionDelay=d("transitionDelay");c.transform=d("transform");c.transformOrigin=d("transformOrigin");c.transform3d=e();var g={transition:"transitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",WebkitTransition:"webkitTransitionEnd",msTransition:"MSTransitionEnd"};var h=c.transitionEnd=g[c.transition]||null;for(var i in c){if(c.hasOwnProperty(i)&&typeof a.support[i]==="undefined"){a.support[i]=c[i]}}b=null;a.cssEase={_default:"ease",in:"ease-in",out:"ease-out","in-out":"ease-in-out",snap:"cubic-bezier(0,1,.5,1)",easeOutCubic:"cubic-bezier(.215,.61,.355,1)",easeInOutCubic:"cubic-bezier(.645,.045,.355,1)",easeInCirc:"cubic-bezier(.6,.04,.98,.335)",easeOutCirc:"cubic-bezier(.075,.82,.165,1)",easeInOutCirc:"cubic-bezier(.785,.135,.15,.86)",easeInExpo:"cubic-bezier(.95,.05,.795,.035)",easeOutExpo:"cubic-bezier(.19,1,.22,1)",easeInOutExpo:"cubic-bezier(1,0,0,1)",easeInQuad:"cubic-bezier(.55,.085,.68,.53)",easeOutQuad:"cubic-bezier(.25,.46,.45,.94)",easeInOutQuad:"cubic-bezier(.455,.03,.515,.955)",easeInQuart:"cubic-bezier(.895,.03,.685,.22)",easeOutQuart:"cubic-bezier(.165,.84,.44,1)",easeInOutQuart:"cubic-bezier(.77,0,.175,1)",easeInQuint:"cubic-bezier(.755,.05,.855,.06)",easeOutQuint:"cubic-bezier(.23,1,.32,1)",easeInOutQuint:"cubic-bezier(.86,0,.07,1)",easeInSine:"cubic-bezier(.47,0,.745,.715)",easeOutSine:"cubic-bezier(.39,.575,.565,1)",easeInOutSine:"cubic-bezier(.445,.05,.55,.95)",easeInBack:"cubic-bezier(.6,-.28,.735,.045)",easeOutBack:"cubic-bezier(.175, .885,.32,1.275)",easeInOutBack:"cubic-bezier(.68,-.55,.265,1.55)"};a.cssHooks["transit:transform"]={get:function(b){return a(b).data("transform")||new j},set:function(b,d){var e=d;if(!(e instanceof j)){e=new j(e)}if(c.transform==="WebkitTransform"&&!f){b.style[c.transform]=e.toString(true)}else{b.style[c.transform]=e.toString()}a(b).data("transform",e)}};a.cssHooks.transform={set:a.cssHooks["transit:transform"].set};if(a.fn.jquery<"1.8"){a.cssHooks.transformOrigin={get:function(a){return a.style[c.transformOrigin]},set:function(a,b){a.style[c.transformOrigin]=b}};a.cssHooks.transition={get:function(a){return a.style[c.transition]},set:function(a,b){a.style[c.transition]=b}}}n("scale");n("translate");n("rotate");n("rotateX");n("rotateY");n("rotate3d");n("perspective");n("skewX");n("skewY");n("x",true);n("y",true);function j(a){if(typeof a==="string"){this.parse(a)}return this}j.prototype={setFromString:function(a,b){var c=typeof b==="string"?b.split(","):b.constructor===Array?b:[b];c.unshift(a);j.prototype.set.apply(this,c)},set:function(a){var b=Array.prototype.slice.apply(arguments,[1]);if(this.setter[a]){this.setter[a].apply(this,b)}else{this[a]=b.join(",")}},get:function(a){if(this.getter[a]){return this.getter[a].apply(this)}else{return this[a]||0}},setter:{rotate:function(a){this.rotate=p(a,"deg")},rotateX:function(a){this.rotateX=p(a,"deg")},rotateY:function(a){this.rotateY=p(a,"deg")},scale:function(a,b){if(b===undefined){b=a}this.scale=a+","+b},skewX:function(a){this.skewX=p(a,"deg")},skewY:function(a){this.skewY=p(a,"deg")},perspective:function(a){this.perspective=p(a,"px")},x:function(a){this.set("translate",a,null)},y:function(a){this.set("translate",null,a)},translate:function(a,b){if(this._translateX===undefined){this._translateX=0}if(this._translateY===undefined){this._translateY=0}if(a!==null&&a!==undefined){this._translateX=p(a,"px")}if(b!==null&&b!==undefined){this._translateY=p(b,"px")}this.translate=this._translateX+","+this._translateY}},getter:{x:function(){return this._translateX||0},y:function(){return this._translateY||0},scale:function(){var a=(this.scale||"1,1").split(",");if(a[0]){a[0]=parseFloat(a[0])}if(a[1]){a[1]=parseFloat(a[1])}return a[0]===a[1]?a[0]:a},rotate3d:function(){var a=(this.rotate3d||"0,0,0,0deg").split(",");for(var b=0;b<=3;++b){if(a[b]){a[b]=parseFloat(a[b])}}if(a[3]){a[3]=p(a[3],"deg")}return a}},parse:function(a){var b=this;a.replace(/([a-zA-Z0-9]+)\((.*?)\)/g,function(a,c,d){b.setFromString(c,d)})},toString:function(a){var b=[];for(var d in this){if(this.hasOwnProperty(d)){if(!c.transform3d&&(d==="rotateX"||d==="rotateY"||d==="perspective"||d==="transformOrigin")){continue}if(d[0]!=="_"){if(a&&d==="scale"){b.push(d+"3d("+this[d]+",1)")}else if(a&&d==="translate"){b.push(d+"3d("+this[d]+",0)")}else{b.push(d+"("+this[d]+")")}}}}return b.join(" ")}};function k(a,b,c){if(b===true){a.queue(c)}else if(b){a.queue(b,c)}else{c()}}function l(b){var c=[];a.each(b,function(b){b=a.camelCase(b);b=a.transit.propertyMap[b]||a.cssProps[b]||b;b=o(b);if(a.inArray(b,c)===-1){c.push(b)}});return c}function m(b,c,d,e){var f=l(b);if(a.cssEase[d]){d=a.cssEase[d]}var g=""+q(c)+" "+d;if(parseInt(e,10)>0){g+=" "+q(e)}var h=[];a.each(f,function(a,b){h.push(b+" "+g)});return h.join(", ")}a.fn.transition=a.fn.transit=function(b,d,e,f){var g=this;var i=0;var j=true;var l=jQuery.extend(true,{},b);if(typeof d==="function"){f=d;d=undefined}if(typeof d==="object"){e=d.easing;i=d.delay||0;j=d.queue||true;f=d.complete;d=d.duration}if(typeof e==="function"){f=e;e=undefined}if(typeof l.easing!=="undefined"){e=l.easing;delete l.easing}if(typeof l.duration!=="undefined"){d=l.duration;delete l.duration}if(typeof l.complete!=="undefined"){f=l.complete;delete l.complete}if(typeof l.queue!=="undefined"){j=l.queue;delete l.queue}if(typeof l.delay!=="undefined"){i=l.delay;delete l.delay}if(typeof d==="undefined"){d=a.fx.speeds._default}if(typeof e==="undefined"){e=a.cssEase._default}d=q(d);var n=m(l,d,e,i);var o=a.transit.enabled&&c.transition;var p=o?parseInt(d,10)+parseInt(i,10):0;if(p===0){var r=function(a){g.css(l);if(f){f.apply(g)}if(a){a()}};k(g,j,r);return g}var s={};var t=function(d){var e=false;var i=function(){if(e){g.unbind(h,i)}if(p>0){g.each(function(){this.style[c.transition]=s[this]||null})}if(typeof f==="function"){f.apply(g)}if(typeof d==="function"){d()}};if(p>0&&h&&a.transit.useTransitionEnd){e=true;g.bind(h,i)}else{window.setTimeout(i,p)}g.each(function(){if(p>0){this.style[c.transition]=n}a(this).css(b)})};var u=function(a){this.offsetWidth;t(a)};k(g,j,u);return this};function n(b,d){if(!d){a.cssNumber[b]=true}a.transit.propertyMap[b]=c.transform;a.cssHooks[b]={get:function(c){var d=a(c).css("transit:transform");return d.get(b)},set:function(c,d){var e=a(c).css("transit:transform");e.setFromString(b,d);a(c).css({"transit:transform":e})}}}function o(a){return a.replace(/([A-Z])/g,function(a){return"-"+a.toLowerCase()})}function p(a,b){if(typeof a==="string"&&!a.match(/^[\-0-9\.]+$/)){return a}else{return""+a+b}}function q(b){var c=b;if(typeof c==="string"&&!c.match(/^[\-0-9\.]+/)){c=a.fx.speeds[c]||a.fx.speeds._default}return p(c,"ms")}a.transit.getTransitionValue=m})(jQuery);(function(a,b,c){b.infinitescroll=function a(c,d,e){this.element=b(e);if(!this._create(c,d)){this.failed=true}};b.infinitescroll.defaults={loading:{finished:c,finishedMsg:"Congratulations, you've reached the end of the internet.",img:"data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtBTThZxZ8mLMgC3fRatCbYMNFCzwLEqLgE4NsDWs/tvqdezZf13Hvk2A9Szdu2X3pg18N+68xXn7rh1c+PLksI/Dhe6cuO3ow3NfV92bdArTqC2Ebd3A8vjf5QWfH6Bg7Nz17c2fj69+fnq+8N2Lty+fuP78/eV2X13neIcCeBRwxorbZrA1ANoCDGrgoG8RTshahQ9iSKEEzUmYIYfNWViUhheCGJyIP5E4oom7WWjgCeBFAJNv1DVV01MAdJhhjdkplWNzO/5oXI846njjVEIqR2OS2B1pE5PVscajkxhMycqLJghQSwT40PgfAl4GqNSXYdZXJn5gSkmmmmJu1aZYb14V51do+pTOCmA40AqVCIhG5IJ9PvYnhIFOxmdqhpaI6GeHCtpooisuutmg+Eg62KOMKuqoTaXgicQWoIYq6qiklmoqFV0UoeqqrLbq6quwxirrrLTWauutJ4QAACH5BAUKABwALAcABADOAAsAAAX/IPd0D2dyRCoUp/k8gpHOKtseR9yiSmGbuBykler9XLAhkbDavXTL5k2oqFqNOxzUZPU5YYZd1XsD72rZpBjbeh52mSNnMSC8lwblKZGwi+0QfIJ8CncnCoCDgoVnBHmKfByGJimPkIwtiAeBkH6ZHJaKmCeVnKKTHIihg5KNq4uoqmEtcRUtEREMBggtEr4QDrjCuRC8h7/BwxENeicSF8DKy82pyNLMOxzWygzFmdvD2L3P0dze4+Xh1Arkyepi7dfFvvTtLQkZBC0T/FX3CRgCMOBHsJ+EHYQY7OinAGECgQsB+Lu3AOK+CewcWjwxQeJBihtNGHSoQOE+iQ3//4XkwBBhRZMcUS6YSXOAwIL8PGqEaSJCiYt9SNoCmnJPAgUVLChdaoFBURN8MAzl2PQphwQLfDFd6lTowglHve6rKpbjhK7/pG5VinZP1qkiz1rl4+tr2LRwWU64cFEihwEtZgbgR1UiHaMVvxpOSwBA37kzGz9e8G+B5MIEKLutOGEsAH2ATQwYfTmuX8aETWdGPZmiZcccNSzeTCA1Sw0bdiitC7LBWgu8jQr8HRzqgpK6gX88QbrB14z/kF+ELpwB8eVQj/JkqdylAudji/+ts3039vEEfK8Vz2dlvxZKG0CmbkKDBvllRd6fCzDvBLKBDSCeffhRJEFebFk1k/Mv9jVIoIJZSeBggwUaNeB+Qk34IE0cXlihcfRxkOAJFFhwGmKlmWDiakZhUJtnLBpnWWcnKaAZcxI0piFGGLBm1mc90kajSCveeBVWKeYEoU2wqeaQi0PetoE+rr14EpVC7oAbAUHqhYExbn2XHHsVqbcVew9tx8+XJKk5AZsqqdlddGpqAKdbAYBn1pcczmSTdWvdmZ17c1b3FZ99vnTdCRFM8OEcAhLwm1NdXnWcBBSMRWmfkWZqVlsmLIiAp/o1gGV2vpS4lalGYsUOqXrddcKCmK61aZ8SjEpUpVFVoCpTj4r661Km7kBHjrDyc1RAIQAAIfkEBQoAGwAsBwAEAM4ACwAABf/gtmUCd4goQQgFKj6PYKi0yrrbc8i4ohQt12EHcal+MNSQiCP8gigdz7iCioaCIvUmZLp8QBzW0EN2vSlCuDtFKaq4RyHzQLEKZNdiQDhRDVooCwkbfm59EAmKi4SGIm+AjIsKjhsqB4mSjT2IOIOUnICeCaB/mZKFNTSRmqVpmJqklSqskq6PfYYCDwYHDC4REQwGCBLGxxIQDsHMwhAIX8bKzcENgSLGF9PU1j3Sy9zX2NrgzQziChLk1BHWxcjf7N046tvN82715czn9Pryz6Ilc4ACj4EBOCZM8KEnAYYADBRKnACAYUMFv1wotIhCEcaJCisqwJFgAUSQGyX/kCSVUUTIdKMwJlyo0oXHlhskwrTJciZHEXsgaqS4s6PJiCAr1uzYU8kBBSgnWFqpoMJMUjGtDmUwkmfVmVypakWhEKvXsS4nhLW5wNjVroJIoc05wSzTr0PtiigpYe4EC2vj4iWrFu5euWIMRBhacaVJhYQBEFjA9jHjyQ0xEABwGceGAZYjY0YBOrRLCxUp29QM+bRkx5s7ZyYgVbTqwwti2ybJ+vLtDYpycyZbYOlptxdx0kV+V7lC5iJAyyRrwYKxAdiz82ng0/jnAdMJFz0cPi104Ec1Vj9/M6F173vKL/feXv156dw11tlqeMMnv4V5Ap53GmjQQH97nFfg+IFiucfgRX5Z8KAgbUlQ4IULIlghhhdOSB6AgX0IVn8eReghen3NRIBsRgnH4l4LuEidZBjwRpt6NM5WGwoW0KSjCwX6yJSMab2GwwAPDXfaBCtWpluRTQqC5JM5oUZAjUNS+VeOLWpJEQ7VYQANW0INJSZVDFSnZphjSikfmzE5N4EEbQI1QJmnWXCmHulRp2edwDXF43txukenJwvI9xyg9Q26Z3MzGUcBYFEChZh6DVTq34AU8Iflh51Sd+CnKFYQ6mmZkhqfBKfSxZWqA9DZanWjxmhrWwi0qtCrt/43K6WqVjjpmhIqgEGvculaGKklKstAACEAACH5BAUKABwALAcABADOAAsAAAX/ICdyQmaMYyAUqPgIBiHPxNpy79kqRXH8wAPsRmDdXpAWgWdEIYm2llCHqjVHU+jjJkwqBTecwItShMXkEfNWSh8e1NGAcLgpDGlRgk7EJ/6Ae3VKfoF/fDuFhohVeDeCfXkcCQqDVQcQhn+VNDOYmpSWaoqBlUSfmowjEA+iEAEGDRGztAwGCDcXEA60tXEiCrq8vREMEBLIyRLCxMWSHMzExnbRvQ2Sy7vN0zvVtNfU2tLY3rPgLdnDvca4VQS/Cpk3ABwSLQkYAQwT/P309vcI7OvXr94jBQMJ/nskkGA/BQBRLNDncAIAiDcG6LsxAWOLiQzmeURBKWSLCQbv/1F0eDGinJUKR47YY1IEgQASKk7Yc7ACRwZm7mHweRJoz59BJUogisKCUaFMR0x4SlJBVBFTk8pZivTR0K73rN5wqlXEAq5Fy3IYgHbEzQ0nLy4QSoCjXLoom96VOJEeCosK5n4kkFfqXjl94wa+l1gvAcGICbewAOAxY8l/Ky/QhAGz4cUkGxu2HNozhwMGBnCUqUdBg9UuW9eUynqSwLHIBujePef1ZGQZXcM+OFuEBeBhi3OYgLyqcuaxbT9vLkf4SeqyWxSQpKGB2gQpm1KdWbu72rPRzR9Ne2Nu9Kzr/1Jqj0yD/fvqP4aXOt5sW/5qsXXVcv1Nsp8IBUAmgswGF3llGgeU1YVXXKTN1FlhWFXW3gIE+DVChApysACHHo7Q4A35lLichh+ROBmLKAzgYmYEYDAhCgxKGOOMn4WR4kkDaoBBOxJtdNKQxFmg5JIWIBnQc07GaORfUY4AEkdV6jHlCEISSZ5yTXpp1pbGZbkWmcuZmQCaE6iJ0FhjMaDjTMsgZaNEHFRAQVp3bqXnZED1qYcECOz5V6BhSWCoVJQIKuKQi2KFKEkEFAqoAo7uYSmO3jk61wUUMKmknJ4SGimBmAa0qVQBhAAAIfkEBQoAGwAsBwAEAM4ACwAABf/gJm5FmRlEqhJC+bywgK5pO4rHI0D3pii22+Mg6/0Ej96weCMAk7cDkXf7lZTTnrMl7eaYoy10JN0ZFdco0XAuvKI6qkgVFJXYNwjkIBcNBgR8TQoGfRsJCRuCYYQQiI+ICosiCoGOkIiKfSl8mJkHZ4U9kZMbKaI3pKGXmJKrngmug4WwkhA0lrCBWgYFCCMQFwoQDRHGxwwGCBLMzRLEx8iGzMMO0cYNeCMKzBDW19lnF9DXDIY/48Xg093f0Q3s1dcR8OLe8+Y91OTv5wrj7o7B+7VNQqABIoRVCMBggsOHE36kSoCBIcSH3EbFangxogJYFi8CkJhqQciLJEf/LDDJEeJIBT0GsOwYUYJGBS0fjpQAMidGmyVP6sx4Y6VQhzs9VUwkwqaCCh0tmKoFtSMDmBOf9phg4SrVrROuasRQAaxXpVUhdsU6IsECZlvX3kwLUWzRt0BHOLTbNlbZG3vZinArge5Dvn7wbqtQkSYAAgtKmnSsYKVKo2AfW048uaPmG386i4Q8EQMBAIAnfB7xBxBqvapJ9zX9WgRS2YMpnvYMGdPK3aMjt/3dUcNI4blpj7iwkMFWDXDvSmgAlijrt9RTR78+PS6z1uAJZIe93Q8g5zcsWCi/4Y+C8bah5zUv3vv89uft30QP23punGCx5954oBBwnwYaNCDY/wYrsYeggnM9B2Fpf8GG2CEUVWhbWAtGouEGDy7Y4IEJVrbSiXghqGKIo7z1IVcXIkKWWR361QOLWWnIhwERpLaaCCee5iMBGJQmJGyPFTnbkfHVZGRtIGrg5HALEJAZbu39BuUEUmq1JJQIPtZilY5hGeSWsSk52G9XqsmgljdIcABytq13HyIM6RcUA+r1qZ4EBF3WHWB29tBgAzRhEGhig8KmqKFv8SeCeo+mgsF7YFXa1qWSbkDpom/mqR1PmHCqJ3fwNRVXjC7S6CZhFVCQ2lWvZiirhQq42SACt25IK2hv8TprriUV1usGgeka7LFcNmCldMLi6qZMgFLgpw16Cipb7bC1knXsBiEAACH5BAUKABsALAcABADOAAsAAAX/4FZsJPkUmUGsLCEUTywXglFuSg7fW1xAvNWLF6sFFcPb42C8EZCj24EJdCp2yoegWsolS0Uu6fmamg8n8YYcLU2bXSiRaXMGvqV6/KAeJAh8VgZqCX+BexCFioWAYgqNi4qAR4ORhRuHY408jAeUhAmYYiuVlpiflqGZa5CWkzc5fKmbbhIpsAoQDRG8vQwQCBLCwxK6vb5qwhfGxxENahvCEA7NzskSy7vNzzzK09W/PNHF1NvX2dXcN8K55cfh69Luveol3vO8zwi4Yhj+AQwmCBw4IYclDAAJDlQggVOChAoLKkgFkSCAHDwWLKhIEOONARsDKryogFPIiAUb/95gJNIiw4wnI778GFPhzBKFOAq8qLJEhQpiNArjMcHCmlTCUDIouTKBhApELSxFWiGiVKY4E2CAekPgUphDu0742nRrVLJZnyrFSqKQ2ohoSYAMW6IoDpNJ4bLdILTnAj8KUF7UeENjAKuDyxIgOuGiOI0EBBMgLNew5AUrDTMGsFixwBIaNCQuAXJB57qNJ2OWm2Aj4skwCQCIyNkhhtMkdsIuodE0AN4LJDRgfLPtn5YDLdBlraAByuUbBgxQwICxMOnYpVOPej074OFdlfc0TqC62OIbcppHjV4o+LrieWhfT8JC/I/T6W8oCl29vQ0XjLdBaA3s1RcPBO7lFvpX8BVoG4O5jTXRQRDuJ6FDTzEWF1/BCZhgbyAKE9qICYLloQYOFtahVRsWYlZ4KQJHlwHS/IYaZ6sZd9tmu5HQm2xi1UaTbzxYwJk/wBF5g5EEYOBZeEfGZmNdFyFZmZIR4jikbLThlh5kUUVJGmRT7sekkziRWUIACABk3T4qCsedgO4xhgGcY7q5pHJ4klBBTQRJ0CeHcoYHHUh6wgfdn9uJdSdMiebGJ0zUPTcoS286FCkrZxnYoYYKWLkBowhQoBeaOlZAgVhLidrXqg2GiqpQpZ4apwSwRtjqrB3muoF9BboaXKmshlqWqsWiGt2wphJkQbAU5hoCACH5BAUKABsALAcABADOAAsAAAX/oGFw2WZuT5oZROsSQnGaKjRvilI893MItlNOJ5v5gDcFrHhKIWcEYu/xFEqNv6B1N62aclysF7fsZYe5aOx2yL5aAUGSaT1oTYMBwQ5VGCAJgYIJCnx1gIOBhXdwiIl7d0p2iYGQUAQBjoOFSQR/lIQHnZ+Ue6OagqYzSqSJi5eTpTxGcjcSChANEbu8DBAIEsHBChe5vL13G7fFuscRDcnKuM3H0La3EA7Oz8kKEsXazr7Cw9/Gztar5uHHvte47MjktznZ2w0G1+D3BgirAqJmJMAQgMGEgwgn5Ei0gKDBhBMALGRYEOJBb5QcWlQo4cbAihZz3GgIMqFEBSM1/4ZEOWPAgpIIJXYU+PIhRG8ja1qU6VHlzZknJNQ6UanCjQkWCIGSUGEjAwVLjc44+DTqUQtPPS5gejUrTa5TJ3g9sWCr1BNUWZI161StiQUDmLYdGfesibQ3XMq1OPYthrwuA2yU2LBs2cBHIypYQPPlYAKFD5cVvNPtW8eVGbdcQADATsiNO4cFAPkvHpedPzc8kUcPgNGgZ5RNDZG05reoE9s2vSEP79MEGiQGy1qP8LA4ZcdtsJE48ONoLTBtTV0B9LsTnPceoIDBDQvS7W7vfjVY3q3eZ4A339J4eaAmKqU/sV58HvJh2RcnIBsDUw0ABqhBA5aV5V9XUFGiHfVeAiWwoFgJJrIXRH1tEMiDFV4oHoAEGlaWhgIGSGBO2nFomYY3mKjVglidaNYJGJDkWW2xxTfbjCbVaOGNqoX2GloR8ZeTaECS9pthRGJH2g0b3Agbk6hNANtteHD2GJUucfajCQBy5OOTQ25ZgUPvaVVQmbKh9510/qQpwXx3SQdfk8tZJOd5b6JJFplT3ZnmmX3qd5l1eg5q00HrtUkUn0AKaiGjClSAgKLYZcgWXwocGRcCFGCKwSB6ceqphwmYRUFYT/1WKlOdUpipmxW0mlCqHjYkAaeoZlqrqZ4qd+upQKaapn/AmgAegZ8KUtYtFAQQAgAh+QQFCgAbACwHAAQAzgALAAAF/+C2PUcmiCiZGUTrEkKBis8jQEquKwU5HyXIbEPgyX7BYa5wTNmEMwWsSXsqFbEh8DYs9mrgGjdK6GkPY5GOeU6ryz7UFopSQEzygOGhJBjoIgMDBAcBM0V/CYqLCQqFOwobiYyKjn2TlI6GKC2YjJZknouaZAcQlJUHl6eooJwKooobqoewrJSEmyKdt59NhRKFMxLEEA4RyMkMEAjDEhfGycqAG8TQx9IRDRDE3d3R2ctD1RLg0ttKEnbY5wZD3+zJ6M7X2RHi9Oby7u/r9g38UFjTh2xZJBEBMDAboogAgwkQI07IMUORwocSJwCgWDFBAIwZOaJIsOBjRogKJP8wTODw5ESVHVtm3AhzpEeQElOuNDlTZ0ycEUWKWFASqEahGwYUPbnxoAgEdlYSqDBkgoUNClAlIHbSAoOsqCRQnQHxq1axVb06FWFxLIqyaze0Tft1JVqyE+pWXMD1pF6bYl3+HTqAWNW8cRUFzmih0ZAAB2oGKukSAAGGRHWJgLiR6AylBLpuHKKUMlMCngMpDSAa9QIUggZVVvDaJobLeC3XZpvgNgCmtPcuwP3WgmXSq4do0DC6o2/guzcseECtUoO0hmcsGKDgOt7ssBd07wqesAIGZC1YIBa7PQHvb1+SFo+++HrJSQfB33xfav3i5eX3Hnb4CTJgegEq8tH/YQEOcIJzbm2G2EoYRLgBXFpVmFYDcREV4HIcnmUhiGBRouEMJGJGzHIspqgdXxK0yCKHRNXoIX4uorCdTyjkyNtdPWrA4Up82EbAbzMRxxZRR54WXVLDIRmRcag5d2R6ugl3ZXzNhTecchpMhIGVAKAYpgJjjsSklBEd99maZoo535ZvdamjBEpusJyctg3h4X8XqodBMx0tiNeg/oGJaKGABpogS40KSqiaEgBqlQWLUtqoVQnytekEjzo0hHqhRorppOZt2p923M2AAV+oBtpAnnPNoB6HaU6mAAIU+IXmi3j2mtFXuUoHKwXpzVrsjcgGOauKEjQrwq157hitGq2NoWmjh7z6Wmxb0m5w66+2VRAuXN/yFUAIACH5BAUKABsALAcABADOAAsAAAX/4CZuRiaM45MZqBgIRbs9AqTcuFLE7VHLOh7KB5ERdjJaEaU4ClO/lgKWjKKcMiJQ8KgumcieVdQMD8cbBeuAkkC6LYLhOxoQ2PF5Ys9PKPBMen17f0CCg4VSh32JV4t8jSNqEIOEgJKPlkYBlJWRInKdiJdkmQlvKAsLBxdABA4RsbIMBggtEhcQsLKxDBC2TAS6vLENdJLDxMZAubu8vjIbzcQRtMzJz79S08oQEt/guNiyy7fcvMbh4OezdAvGrakLAQwyABsELQkY9BP+//ckyPDD4J9BfAMh1GsBoImMeQUN+lMgUJ9CiRMa5msxoB9Gh/o8GmxYMZXIgxtR/yQ46S/gQAURR0pDwYDfywoyLPip5AdnCwsMFPBU4BPFhKBDi444quCmDKZOfwZ9KEGpCKgcN1jdALSpPqIYsabS+nSqvqplvYqQYAeDPgwKwjaMtiDl0oaqUAyo+3TuWwUAMPpVCfee0cEjVBGQq2ABx7oTWmQk4FglZMGN9fGVDMCuiH2AOVOu/PmyxM630gwM0CCn6q8LjVJ8GXvpa5Uwn95OTC/nNxkda1/dLSK475IjCD6dHbK1ZOa4hXP9DXs5chJ00UpVm5xo2qRpoxptwF2E4/IbJpB/SDz9+q9b1aNfQH08+p4a8uvX8B53fLP+ycAfemjsRUBgp1H20K+BghHgVgt1GXZXZpZ5lt4ECjxYR4ScUWiShEtZqBiIInRGWnERNnjiBglw+JyGnxUmGowsyiiZg189lNtPGACjV2+S9UjbU0JWF6SPvEk3QZEqsZYTk3UAaRSUnznJI5LmESCdBVSyaOWUWLK4I5gDUYVeV1T9l+FZClCAUVA09uSmRHBCKAECFEhW51ht6rnmWBXkaR+NjuHpJ40D3DmnQXt2F+ihZxlqVKOfQRACACH5BAUKABwALAcABADOAAsAAAX/ICdyUCkUo/g8mUG8MCGkKgspeC6j6XEIEBpBUeCNfECaglBcOVfJFK7YQwZHQ6JRZBUqTrSuVEuD3nI45pYjFuWKvjjSkCoRaBUMWxkwBGgJCXspQ36Bh4EEB0oKhoiBgyNLjo8Ki4QElIiWfJqHnISNEI+Ql5J9o6SgkqKkgqYihamPkW6oNBgSfiMMDQkGCBLCwxIQDhHIyQwQCGMKxsnKVyPCF9DREQ3MxMPX0cu4wt7J2uHWx9jlKd3o39MiuefYEcvNkuLt5O8c1ePI2tyELXGQwoGDAQf+iEC2xByDCRAjTlAgIUWCBRgCPJQ4AQBFXAs0coT40WLIjRxL/47AcHLkxIomRXL0CHPERZkpa4q4iVKiyp0tR/7kwHMkTUBBJR5dOCEBAVcKKtCAyOHpowXCpk7goABqBZdcvWploACpBKkpIJI1q5OD2rIWE0R1uTZu1LFwbWL9OlKuWb4c6+o9i3dEgw0RCGDUG9KlRw56gDY2qmCByZBaASi+TACA0TucAaTteCcy0ZuOK3N2vJlx58+LRQyY3Xm0ZsgjZg+oPQLi7dUcNXi0LOJw1pgNtB7XG6CBy+U75SYfPTSQAgZTNUDnQHt67wnbZyvwLgKiMN3oCZB3C76tdewpLFgIP2C88rbi4Y+QT3+8S5USMICZXWj1pkEDeUU3lOYGB3alSoEiMIjgX4WlgNF2EibIwQIXauWXSRg2SAOHIU5IIIMoZkhhWiJaiFVbKo6AQEgQXrTAazO1JhkBrBG3Y2Y6EsUhaGn95hprSN0oWpFE7rhkeaQBchGOEWnwEmc0uKWZj0LeuNV3W4Y2lZHFlQCSRjTIl8uZ+kG5HU/3sRlnTG2ytyadytnD3HrmuRcSn+0h1dycexIK1KCjYaCnjCCVqOFFJTZ5GkUUjESWaUIKU2lgCmAKKQIUjHapXRKE+t2og1VgankNYnohqKJ2CmKplso6GKz7WYCgqxeuyoF8u9IQAgA7",msg:null,msgText:"Loading the next set of posts...",selector:null,speed:"fast",start:c},state:{isDuringAjax:false,isInvalidPage:false,isDestroyed:false,isDone:false,isPaused:false,currPage:1},debug:false,behavior:c,binder:b(a),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:false,pathParse:c,dataType:"html",appendCallback:true,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:c,path:c,prefill:false};b.infinitescroll.prototype={_binding:function a(b){var d=this,e=d.options;e.v="2.0b2.120520";if(!!e.behavior&&this["_binding_"+e.behavior]!==c){this["_binding_"+e.behavior].call(this);return}if(b!=="bind"&&b!=="unbind"){this._debug("Binding value "+b+" not valid");return false}if(b==="unbind"){this.options.binder.unbind("smartscroll.infscr."+d.options.infid)}else{this.options.binder[b]("smartscroll.infscr."+d.options.infid,function(){d.scroll()})}this._debug("Binding",b)},_create:function d(e,f){var g=b.extend(true,{},b.infinitescroll.defaults,e);this.options=g;var h=b(a);var i=this;if(!i._validate(e)){return false}var j=b(g.nextSelector).attr("href");if(!j){this._debug("Navigation selector not found");return false}g.path=g.path||this._determinepath(j);g.contentSelector=g.contentSelector||this.element;g.loading.selector=g.loading.selector||g.contentSelector;g.loading.msg=g.loading.msg||b('
    Loading...
    '+g.loading.msgText+"
    ");(new Image).src=g.loading.img;if(g.pixelsFromNavToBottom===c){g.pixelsFromNavToBottom=b(document).height()-b(g.navSelector).offset().top}var k=this;g.loading.start=g.loading.start||function(){b(g.navSelector).hide();g.loading.msg.appendTo(g.loading.selector).show(g.loading.speed,b.proxy(function(){this.beginAjax(g)},k))};g.loading.finished=g.loading.finished||function(){g.loading.msg.fadeOut(g.loading.speed)};g.callback=function(a,d,e){if(!!g.behavior&&a["_callback_"+g.behavior]!==c){a["_callback_"+g.behavior].call(b(g.contentSelector)[0],d,e)}if(f){f.call(b(g.contentSelector)[0],d,g,e)}if(g.prefill){h.bind("resize.infinite-scroll",a._prefill)}};if(e.debug){if(Function.prototype.bind&&(typeof console==="object"||typeof console==="function")&&typeof console.log==="object"){["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(a){console[a]=this.call(console[a],console)},Function.prototype.bind)}}this._setup();if(g.prefill){this._prefill()}return true},_prefill:function c(){var d=this;var e=b(document);var f=b(a);function g(){return e.height()<=f.height()}this._prefill=function(){if(g()){d.scroll()}f.bind("resize.infinite-scroll",function(){if(g()){f.unbind("resize.infinite-scroll");d.scroll()}})};this._prefill()},_debug:function a(){if(true!==this.options.debug){return}if(typeof console!=="undefined"&&typeof console.log==="function"){if(Array.prototype.slice.call(arguments).length===1&&typeof Array.prototype.slice.call(arguments)[0]==="string"){console.log(Array.prototype.slice.call(arguments).toString())}else{console.log(Array.prototype.slice.call(arguments))}}else{if(!Function.prototype.bind&&typeof console!=="undefined"&&typeof console.log==="object"){Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments))}}},_determinepath:function a(b){var d=this.options;if(!!d.behavior&&this["_determinepath_"+d.behavior]!==c){return this["_determinepath_"+d.behavior].call(this,b)}if(!!d.pathParse){this._debug("pathParse manual");return d.pathParse(b,this.options.state.currPage+1)}else{if(b.match(/^(.*?)\b2\b(.*?$)/)){b=b.match(/^(.*?)\b2\b(.*?$)/).slice(1)}else{if(b.match(/^(.*?)2(.*?$)/)){if(b.match(/^(.*?page=)2(\/.*|$)/)){b=b.match(/^(.*?page=)2(\/.*|$)/).slice(1);return b}b=b.match(/^(.*?)2(.*?$)/).slice(1)}else{if(b.match(/^(.*?page=)1(\/.*|$)/)){b=b.match(/^(.*?page=)1(\/.*|$)/).slice(1);return b}else{this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");d.state.isInvalidPage=true}}}}this._debug("determinePath",b);return b},_error:function a(b){var d=this.options;if(!!d.behavior&&this["_error_"+d.behavior]!==c){this["_error_"+d.behavior].call(this,b);return}if(b!=="destroy"&&b!=="end"){b="unknown"}this._debug("Error",b);if(b==="end"){this._showdonemsg()}d.state.isDone=true;d.state.currPage=1;d.state.isPaused=false;this._binding("unbind")},_loadcallback:function d(e,f,g){var h=this.options,i=this.options.callback,j=h.state.isDone?"done":!h.appendCallback?"no-append":"append",k;if(!!h.behavior&&this["_loadcallback_"+h.behavior]!==c){this["_loadcallback_"+h.behavior].call(this,e,f);return}switch(j){case"done":this._showdonemsg();return false;case"no-append":if(h.dataType==="html"){f="
    "+f+"
    ";f=b(f).find(h.itemSelector)}break;case"append":var l=e.children();if(l.length===0){return this._error("end")}k=document.createDocumentFragment();while(e[0].firstChild){k.appendChild(e[0].firstChild)}this._debug("contentSelector",b(h.contentSelector)[0]);b(h.contentSelector)[0].appendChild(k);f=l.get();break}h.loading.finished.call(b(h.contentSelector)[0],h);if(h.animate){var m=b(a).scrollTop()+b("#infscr-loading").height()+h.extraScrollPx+"px";b("html,body").animate({scrollTop:m},800,function(){h.state.isDuringAjax=false})}if(!h.animate){h.state.isDuringAjax=false}i(this,f,g);if(h.prefill){this._prefill()}},_nearbottom:function d(){var e=this.options,f=0+b(document).height()-e.binder.scrollTop()-b(a).height();if(!!e.behavior&&this["_nearbottom_"+e.behavior]!==c){return this["_nearbottom_"+e.behavior].call(this)}this._debug("math:",f,e.pixelsFromNavToBottom);return f-e.bufferPx-1&&b(c[d]).length===0){this._debug("Your "+d+" found no elements.");return false}}return true},bind:function a(){this._binding("bind")},destroy:function a(){this.options.state.isDestroyed=true;return this._error("destroy")},pause:function a(){this._pausing("pause")},resume:function a(){this._pausing("resume")},beginAjax:function a(d){var e=this,f=d.path,g,h,i,j;d.state.currPage++;g=b(d.contentSelector).is("table")?b(""):b("
    ");h=typeof f==="function"?f(d.state.currPage):f.join(d.state.currPage);e._debug("heading into ajax",h);i=d.dataType==="html"||d.dataType==="json"?d.dataType:"html+callback";if(d.appendCallback&&d.dataType==="html"){i+="+callback"}switch(i){case"html+callback":e._debug("Using HTML via .load() method");g.load(h+" "+d.itemSelector,c,function a(b){e._loadcallback(g,b,h)});break;case"html":e._debug("Using "+i.toUpperCase()+" via $.ajax() method");b.ajax({url:h,dataType:d.dataType,complete:function a(b,c){j=typeof b.isResolved!=="undefined"?b.isResolved():c==="success"||c==="notmodified";if(j){e._loadcallback(g,b.responseText,h)}else{e._error("end")}}});break;case"json":e._debug("Using "+i.toUpperCase()+" via $.ajax() method");b.ajax({dataType:"json",type:"GET",url:h,success:function(a,b,f){j=typeof f.isResolved!=="undefined"?f.isResolved():b==="success"||b==="notmodified";if(d.appendCallback){if(d.template!==c){var i=d.template(a);g.append(i);if(j){e._loadcallback(g,i)}else{e._error("end")}}else{e._debug("template must be defined.");e._error("end")}}else{if(j){e._loadcallback(g,a,h)}else{e._error("end")}}},error:function(){e._debug("JSON ajax request failed.");e._error("end")}});break}},retrieve:function a(d){d=d||null;var e=this,f=e.options;if(!!f.behavior&&this["retrieve_"+f.behavior]!==c){this["retrieve_"+f.behavior].call(this,d);return}if(f.state.isDestroyed){this._debug("Instance is destroyed");return false}f.state.isDuringAjax=true;f.loading.start.call(b(f.contentSelector)[0],f)},scroll:function a(){var b=this.options,d=b.state;if(!!b.behavior&&this["scroll_"+b.behavior]!==c){this["scroll_"+b.behavior].call(this);return}if(d.isDuringAjax||d.isInvalidPage||d.isDone||d.isDestroyed||d.isPaused){return}if(!this._nearbottom()){return}this.retrieve()},toggle:function a(){this._pausing()},unbind:function a(){this._binding("unbind")},update:function a(c){if(b.isPlainObject(c)){this.options=b.extend(true,this.options,c)}}};b.fn.infinitescroll=function a(c,d){var e=typeof c;switch(e){case"string":var f=Array.prototype.slice.call(arguments,1);this.each(function(){var a=b.data(this,"infinitescroll");if(!a){return false}if(!b.isFunction(a[c])||c.charAt(0)==="_"){return false}a[c].apply(a,f)});break;case"object":this.each(function(){var a=b.data(this,"infinitescroll");if(a){a.update(c)}else{a=new b.infinitescroll(c,d,this);if(!a.failed){b.data(this,"infinitescroll",a)}}});break}return this};var d=b.event,e;d.special.smartscroll={setup:function(){b(this).bind("scroll",d.special.smartscroll.handler)},teardown:function(){b(this).unbind("scroll",d.special.smartscroll.handler)},handler:function(a,c){var d=this,f=arguments;a.type="smartscroll";if(e){clearTimeout(e)}e=setTimeout(function(){b.event.handle.apply(d,f)},c==="execAsap"?0:100)}};b.fn.smartscroll=function(a){return a?this.bind("smartscroll",a):this.trigger("smartscroll",["execAsap"])}})(window,jQuery);(function(a){a.fn.dcMegaMenu=function(b){var c={classParent:"dc-mega",classContainer:"sub-container",classSubParent:"mega-hdr",classSubLink:"mega-hdr",classWidget:"dc-extra",rowItems:6,speed:"fast",effect:"fade",event:"hover",fullWidth:false,onLoad:function(){},beforeOpen:function(){},beforeClose:function(){}};var d=mk_grid_width-30;var b=a.extend(c,b);var e=this;return e.each(function(b){var f=c.classSubParent;var g=c.classSubLink;var h=c.classParent;var i=c.classContainer;var j=c.classWidget;p();function k(){var b=a(".sub",this);a(this).addClass("mega-hover");if(c.effect==="fade"){a(b).fadeIn(c.speed)}if(c.effect==="slide"){a(b).show(c.speed)}c.beforeOpen.call(this)}function l(b){var d=a(".sub",b);a(b).addClass("mega-hover");if(c.effect==="fade"){a(d).fadeIn(c.speed)}if(c.effect==="slide"){a(d).show(c.speed)}c.beforeOpen.call(this)}function m(){var b=a(".sub",this);a(this).removeClass("mega-hover");a(b).hide();c.beforeClose.call(this)}function n(b){var d=a(".sub",b);a(b).removeClass("mega-hover");a(d).hide();c.beforeClose.call(this)}function o(){a("li",e).removeClass("mega-hover");a(".sub",e).hide()}function p(){var b=h+"-li";var p=e.outerWidth();a("> li",e).each(function(){var h=a("> ul",this);var k=a("> a",this);if(h.length){h.addClass("sub").wrap('
    ');var l=a(this).position();pl=l.left;if(a("ul.mk_mega_menu",h).length){a(this).addClass(b);a("."+i,this).addClass("mega");a("> li",h).each(function(){if(!a(this).hasClass(j)){a(this).addClass("mega-unit");if(a("> ul",this).length){a(this).addClass(f); a("> a",this).addClass(f+"-a")}else{a(this).addClass(g);a("> a",this).addClass(g+"-a")}}});var m=a(".mega-unit",this);rowSize=parseInt(c.rowItems);for(var n=0;n')}h.show();var o=a(this).width();var q=pl+o;var r=p-q;var s=h.outerWidth();var t=h.parent("."+i).outerWidth();var u=t-s;if(c.fullWidth===true){var v=p-u;h.parent("."+i).css({width:d});e.addClass("full-width")}var w=a(".mega-unit",h).outerWidth(true);var x=a(".row:eq(0) .mega-unit",h).length;var y=w*x;var z=y+u;a(".row",this).each(function(){a(".mega-unit:last",this).addClass("last");var b=undefined;a(".mega-unit > a",this).each(function(){var c=parseInt(a(this).height());if(b===undefined||b a",this).css("height",b+"px");a(this).css("width",y+"px")});if(c.fullWidth==true){C={left:0}}else{var A=r ul",this);$mk_nested_width=$mk_nested_ul.width();$mk_nested_ul.find("ul").css("left",$mk_nested_width+"px");$mk_nested_ul.find("li").each(function(){var b=a("> ul",this);if(b.length){jQuery(this).append('')}jQuery(this).hover(function(){jQuery(this).find("> ul").stop(true,true).delay(200).fadeIn(100)},function(){jQuery(this).find("> ul").stop(true,true).delay(200).fadeOut(100)})})}}});var q=a("> li > a",e).outerHeight(true);a("."+i,e).css({top:q+"px"}).css("z-index","1000");if(c.event=="hover"){var r={sensitivity:1,interval:30,over:k,timeout:100,out:m};a("li",e).hoverIntent(r)}if(c.event=="click"){a("body").mouseup(function(b){if(!a(b.target).parents(".mega-hover").length){o()}});a("> li > a."+h,e).click(function(b){var c=a(this).parent();if(c.hasClass("mega-hover")){n(c)}else{l(c)}b.preventDefault()})}c.onLoad.call(this)}})}})(jQuery);(function(a,b){var c,d,e;c=d=a.jQuery;e=d.ScrollTo=d.ScrollTo||{config:{duration:400,easing:"swing",callback:b,durationMode:"each",offsetTop:0,offsetLeft:0},configure:function(a){d.extend(e.config,a||{});return this},scroll:function(b,c){var f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w;f=b.pop();g=f.$container;h=g.get(0);i=f.$target;j=d("").css({position:"absolute",top:"0px",left:"0px"});k=g.css("position");g.css("position","relative");j.appendTo(g);p=j.offset().top;q=i.offset().top;r=q-p-parseInt(c.offsetTop,10);s=j.offset().left;t=i.offset().left;u=t-s-parseInt(c.offsetLeft,10);l=h.scrollTop;m=h.scrollLeft;j.remove();g.css("position",k);v={};w=function(a){if(b.length===0){if(typeof c.callback==="function"){c.callback.apply(this,[a])}}else{e.scroll(b,c)}return true};if(c.onlyIfOutside){n=l+g.height();o=m+g.width();if(l").get(0);l.$el.append(l.canvas);if(typeof G_vmlCanvasManager!=="undefined"&&G_vmlCanvasManager!==null){G_vmlCanvasManager.initElement(l.canvas)}l.ctx=l.canvas.getContext("2d");if(window.devicePixelRatio>1){d=window.devicePixelRatio;a(l.canvas).css({width:l.options.size,height:l.options.size});l.canvas.width*=d;l.canvas.height*=d;l.ctx.scale(d,d)}l.ctx.translate(l.options.size/2,l.options.size/2);l.$el.addClass("easyPieChart");l.$el.css({width:l.options.size,height:l.options.size,lineHeight:""+l.options.size+"px"});l.update(b);return l};this.update=function(a){a=parseFloat(a)||0;if(l.options.animate===false){f(a)}else{e(l.percentage,a)}return l};j=function(){var a,b,c;l.ctx.fillStyle=l.options.scaleColor;l.ctx.lineWidth=1;c=[];for(a=b=0;b<=24;a=++b){c.push(d(a))}return c};d=function(a){var b;b=a%6===0?0:l.options.size*.017;l.ctx.save();l.ctx.rotate(a*Math.PI/12);l.ctx.fillRect(l.options.size/2-b,0,-l.options.size*.05+b,1);l.ctx.restore()};k=function(){var a;a=l.options.size/2-l.options.lineWidth/2;if(l.options.scaleColor!==false){a-=l.options.size*.08}l.ctx.beginPath();l.ctx.arc(0,0,a,0,Math.PI*2,true);l.ctx.closePath();l.ctx.strokeStyle=l.options.trackColor;l.ctx.lineWidth=l.options.lineWidth;l.ctx.stroke()};i=function(){if(l.options.scaleColor!==false){j()}if(l.options.trackColor!==false){k()}};f=function(b){var c;i();l.ctx.strokeStyle=a.isFunction(l.options.barColor)?l.options.barColor(b):l.options.barColor;l.ctx.lineCap=l.options.lineCap;l.ctx.lineWidth=l.options.lineWidth;c=l.options.size/2-l.options.lineWidth/2;if(l.options.scaleColor!==false){c-=l.options.size*.08}l.ctx.save();l.ctx.rotate(-Math.PI/2);l.ctx.beginPath();l.ctx.arc(0,0,c,0,Math.PI*2*b/100,false);l.ctx.stroke();l.ctx.restore()};h=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){return window.setTimeout(a,1e3/60)}}();e=function(a,b){var c,d;l.options.onStart.call(l);l.percentage=b;d=Date.now();c=function(){var e,j;j=Date.now()-d;if(j=l.options.animate){return l.options.onStop.call(l)}};h(c)};g=function(a,b,c,d){var e,f;e=function(a){return Math.pow(a,2)};f=function(a){if(a<1){return e(a)}else{return 2-e(a/2*-2+2)}};a/=d/2;return c/2*f(a)+b};return this.init()};a.easyPieChart.defaultOptions={barColor:"#ef1e25",trackColor:"#f2f2f2",scaleColor:"#dfe0e0",lineCap:"round",size:110,lineWidth:3,animate:false,onStart:a.noop,onStop:a.noop,onStep:a.noop};a.fn.easyPieChart=function(b){return a.each(this,function(c,d){var e;e=a(d);if(!e.data("easyPieChart")){return e.data("easyPieChart",new a.easyPieChart(d,b))}})};return void 0})(jQuery);(function(a){a.fn.downCount=function(b,c){var d=a.extend({date:null,offset:null},b);if(!d.date){a.error("Date is not defined.")}if(!Date.parse(d.date)){a.error("Incorrect date format, it should look like this, 12/24/2012 12:00:00.")}var e=this;var f=function(){var a=new Date;var b=a.getTime()+a.getTimezoneOffset()*6e4;var c=new Date(b+36e5*d.offset);return c};function g(){var a=new Date(d.date),b=f();var g=a-b;if(g<0){clearInterval(h);if(c&&typeof c==="function")c();return}var i=1e3,j=i*60,k=j*60,l=k*24;var m=Math.floor(g/l),n=Math.floor(g%l/k),o=Math.floor(g%k/j),p=Math.floor(g%j/i);m=String(m).length>=2?m:"0"+m;n=String(n).length>=2?n:"0"+n;o=String(o).length>=2?o:"0"+o;p=String(p).length>=2?p:"0"+p;var q=m===1?"day":"days",r=n===1?"hour":"hours",s=o===1?"minute":"minutes",t=p===1?"second":"seconds";e.find(".days").text(m);e.find(".hours").text(n);e.find(".minutes").text(o);e.find(".seconds").text(p);e.find(".days_ref").text(q);e.find(".hours_ref").text(r);e.find(".minutes_ref").text(s);e.find(".seconds_ref").text(t)}var h=setInterval(g,1e3)}})(jQuery);(function(a){var b=a.event,c,d;c=b.special.debouncedresize={setup:function(){a(this).on("resize",c.handler)},teardown:function(){a(this).off("resize",c.handler)},handler:function(a,e){var f=this,g=arguments,h=function(){a.type="debouncedresize";b.dispatch.apply(f,g)};if(d){clearTimeout(d)}e?h():d=setTimeout(h,c.threshold)},threshold:150}})(jQuery);(function(a,b){var c;function d(a,b){var c=this,d;function e(){c.frameCount++;a.call(c)}this.frameDuration=b||25;this.frameCount=-1;this.start=function(){e();d=setInterval(e,this.frameDuration)};this.stop=function(){clearInterval(d);d=null}}function e(){var b=a.event.special.frame.handler,c=a.Event("frame"),d=this.array,e=d.length;c.frameCount=this.frameCount;while(e--){b.call(d[e],c)}}if(!a.event.special.frame){a.event.special.frame={setup:function(a,b){if(c){c.array.push(this)}else{c=new d(e,a&&a.frameDuration);c.array=[this];var f=setTimeout(function(){c.start();clearTimeout(f);f=null},0)}return},teardown:function(a){var d=c.array,e=d.length;while(e--){if(d[e]===this){d.splice(e,1);break}}if(d.length===0){c.stop();c=b}return},handler:function(b){a.event.handle.apply(this,arguments)}}}})(jQuery);(function(a,b){var c=true,d={mouseport:"body",xparallax:true,yparallax:true,xorigin:.5,yorigin:.5,decay:.66,frameDuration:30,freezeClass:"freeze"},e={left:0,top:0,middle:.5,center:.5,right:1,bottom:1},f=/^\d+\s?px$/,g=/^\d+\s?%$/,h=a(window),i=a(document),j=[0,0];var k=function(){var a=false;var b=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a,b){return window.setTimeout(function(){a()},25)}}();function c(){var c=[],d;function e(){}function f(){var e=c.slice(0),f=e.length,g=-1;if(a){console.log("timer frame()",f)}while(++g1?1:e[f]}return e}function q(a){return[a.width(),a.height()]}function r(a){var b=a.offset()||{left:0,top:0},c=a.css("borderLeftStyle")==="none"?0:parseInt(a.css("borderLeftWidth"),10),d=a.css("borderTopStyle")==="none"?0:parseInt(a.css("borderTopWidth"),10),e=parseInt(a.css("paddingLeft"),10),f=parseInt(a.css("paddingTop"),10);return[b.left+c+e,b.top+d+f]}function s(a){return[1/a[0],1/a[1]]}function t(a,b,c){return[b||a.outerWidth(),c||a.outerHeight()]}function u(a,c){var d=[a,c],f=2,g=[];while(f--){g[f]=typeof d[f]==="string"?d[f]===b?1:e[g[f]]||l(g[f]):d[f]}return g}function v(a,b){return[f.test(a),f.test(b)]}function w(a,b,c){var d=[a,b],e=2,f=[];while(e--){f[e]=c[e]?parseInt(d[e],10):f[e]=d[e]===true?1:l(d[e])}return f}function x(a,b,c,d){var e=2,f=[];while(e--){f[e]=b[e]?c[e]*(d[e]-a[e]):a[e]?c[e]*(1-a[e]):0}return f}function y(a,b){var c=2,d=[];while(c--){if(a[c]){d[c]=b[c]*100+"%"}else{}}return d}function z(a,b,c,d,e){var f=a.offsetParent(),g=a.position(),h=[],i=[],j=2;while(j--){h[j]=c[j]?0:g[j===0?"left":"top"]/(f[j===0?"outerWidth":"outerHeight"]()-e[j]);i[j]=(h[j]-d[j])/b[j]}return i}function A(a,b,c,d,e,f){var g=[],h,i,j=2,k={};while(j--){if(a[j]){g[j]=a[j]*f[j]+c[j];if(b[j]){h=e[j];i=g[j]*-1}else{h=g[j]*100+"%";i=g[j]*d[j]*-1}if(j===0){k.left=h;k.marginLeft=i}else{k.top=h;k.marginTop=i}}}return k}function B(a,b,c,d,e,f,g){var h,i;if((!e[0]||Math.abs(a[0]-b[0])",messageAttr:"data-message",messageClass:"error",offset:[0,0],position:"center right",singleError:false,speed:"normal"},messages:{"*":{en:"Please correct this value"}},localize:function(b,c){a.each(c,function(a,c){j.messages[a]=j.messages[a]||{};j.messages[a][b]=c})},localizeFn:function(b,c){j.messages[b]=j.messages[b]||{};a.extend(j.messages[b],c)},fn:function(b,d,f){if(a.isFunction(d))f=d;else{if(typeof d=="string")d={en:d};this.messages[b.key||b]=d}if(d=e.exec(b))b=c(d[1]);k.push([b,f])},addEffect:function(a,b,c){l[a]=[b,c]}};var k=[],l={default:[function(c){var d=this.getConf();a.each(c,function(c,e){c=e.input;c.addClass(d.errorClass);var f=c.data("msg.el");if(!f){f=a(d.message).addClass(d.messageClass).appendTo(document.body);c.data("msg.el",f)}f.css({visibility:"hidden"}).find("p").remove();a.each(e.messages,function(b,c){a("

    ").html(c).appendTo(f)});f.outerWidth()==f.parent().width()&&f.add(f.find("p")).css({display:"inline"});e=b(c,f,d);f.css({visibility:"visible",position:"absolute",top:e.top,left:e.left}).fadeIn(d.speed)})},function(b){var c=this.getConf();b.removeClass(c.errorClass).each(function(){var b=a(this).data("msg.el");b&&b.css({visibility:"hidden"})})}]};a.each("email,url,number".split(","),function(b,c){a.expr[":"][c]=function(a){return a.getAttribute("type")===c}});a.fn.oninvalid=function(a){return this[a?"bind":"trigger"]("OI",a)};j.fn(":email","Please enter a valid email address",function(a,b){return!b||h.test(b)});j.fn(":url","Please enter a valid URL",function(a,b){return!b||i.test(b)});j.fn(":number","Please enter a numeric value.",function(a,b){return f.test(b)});j.fn("[max]","Please enter a value smaller than $1",function(a,b){if(b===""||g&&a.is(":date"))return true;a=a.attr("max");return parseFloat(b)<=parseFloat(a)?true:[a]});j.fn("[min]","Please enter a value larger than $1",function(a,b){if(b===""||g&&a.is(":date"))return true;a=a.attr("min");return parseFloat(b)>=parseFloat(a)?true:[a]});j.fn("[required]","Please complete this mandatory field.",function(a,b){if(a.is(":checkbox"))return a.is(":checked");return!!b});j.fn("[pattern]",function(a){var b=new RegExp("^"+a.attr("pattern")+"$");return b.test(a.val())});a.fn.validator=function(b){var c=this.data("validator");if(c){c.destroy();this.removeData("validator")}b=a.extend(true,{},j.conf,b);if(this.is("form"))return this.each(function(){var e=a(this);c=new d(e.find(":input"),e,b);e.data("validator",c)});else{c=new d(this,this.eq(0).closest("form"),b);return this.data("validator",c)}}})(jQuery);(function(a){var b={},c,d,e=document,f=window,g=e.documentElement,h=a.expando,i;a.event.special.inview={add:function(c){b[c.guid+"-"+this[h]]={data:c,$element:a(this)};if(!i&&!a.isEmptyObject(b)){i=setInterval(l,250)}},remove:function(c){try{delete b[c.guid+"-"+this[h]]}catch(a){}if(a.isEmptyObject(b)){clearInterval(i);i=null}}};function j(){var b,c,d={height:f.innerHeight,width:f.innerWidth};if(!d.height){b=e.compatMode;if(b||!a.support.boxModel){c=b==="CSS1Compat"?g:e.body;d={height:c.clientHeight,width:c.clientWidth}}}return d}function k(){return{top:f.pageYOffset||g.scrollTop||e.body.scrollTop,left:f.pageXOffset||g.scrollLeft||e.body.scrollLeft}}function l(){var e=a(),f,h=0;a.each(b,function(a,b){var c=b.data.selector,d=b.$element;e=e.add(c?d.find(c):d)});f=e.length;if(f){c=c||j();d=d||k();for(;hd.top&&m.topd.left&&m.leftm.left?"right":d.left+c.widthm.top?"bottom":d.top+c.heightC.slides.length&&!b.centeredSlides){a=0}if(a<0)a=0;return a}function f(){function a(a){var c=new Image;c.onload=function(){if(C&&C.imagesLoaded!==undefined)C.imagesLoaded++;if(C.imagesLoaded===C.imagesToLoad.length){C.reInit();if(b.onImagesReady)C.fireCallback(b.onImagesReady,C)}};c.src=a}var d=C.h.addEventListener;var e=b.eventTarget==="wrapper"?C.wrapper:C.container;if(!(C.browser.ie10||C.browser.ie11)){if(C.support.touch){d(e,"touchstart",p);d(e,"touchmove",q);d(e,"touchend",r)}if(b.simulateTouch){d(e,"mousedown",p);d(document,"mousemove",q);d(document,"mouseup",r)}}else{d(e,C.touchEvents.touchStart,p);d(document,C.touchEvents.touchMove,q);d(document,C.touchEvents.touchEnd,r)}if(b.autoResize){d(window,"resize",C.resizeFix)}g();C._wheelEvent=false;if(b.mousewheelControl){if(document.onmousewheel!==undefined){C._wheelEvent="mousewheel"}if(!C._wheelEvent){try{new WheelEvent("wheel");C._wheelEvent="wheel"}catch(a){}}if(!C._wheelEvent){C._wheelEvent="DOMMouseScroll"}if(C._wheelEvent){d(C.container,C._wheelEvent,j)}}if(b.keyboardControl){d(document,"keydown",i)}if(b.updateOnImagesReady){C.imagesToLoad=c("img",C.container);for(var f=0;f=e&&k[0]<=e+g&&k[1]>=f&&k[1]<=f+h){c=true}}if(!c)return}if(M){if(b===37||b===39){if(a.preventDefault)a.preventDefault();else a.returnValue=false}if(b===39)C.swipeNext();if(b===37)C.swipePrev()}else{if(b===38||b===40){if(a.preventDefault)a.preventDefault();else a.returnValue=false}if(b===40)C.swipeNext();if(b===38)C.swipePrev()}}function j(a){var c=C._wheelEvent;var d=0;if(a.detail)d=-a.detail;else if(c==="mousewheel"){if(b.mousewheelControlForceToAxis){if(M){if(Math.abs(a.wheelDeltaX)>Math.abs(a.wheelDeltaY))d=a.wheelDeltaX;else return}else{if(Math.abs(a.wheelDeltaY)>Math.abs(a.wheelDeltaX))d=a.wheelDeltaY;else return}}else{d=a.wheelDelta}}else if(c==="DOMMouseScroll")d=-a.detail;else if(c==="wheel"){if(b.mousewheelControlForceToAxis){if(M){if(Math.abs(a.deltaX)>Math.abs(a.deltaY))d=-a.deltaX;else return}else{if(Math.abs(a.deltaY)>Math.abs(a.deltaX))d=-a.deltaY;else return}}else{d=Math.abs(a.deltaX)>Math.abs(a.deltaY)?-a.deltaX:-a.deltaY}}if(!b.freeMode){if((new Date).getTime()-U>60){if(d<0)C.swipeNext();else C.swipePrev()}U=(new Date).getTime()}else{var f=C.getWrapperTranslate()+d;if(f>0)f=0;if(f<-e())f=-e();C.setWrapperTransition(0);C.setWrapperTranslate(f);C.updateActiveSlide(f);if(f===0||f===-e())return}if(b.autoplay)C.stopAutoplay(true);if(a.preventDefault)a.preventDefault();else a.returnValue=false;return false}function k(a){if(C.allowSlideClick){m(a);C.fireCallback(b.onSlideClick,C,a)}}function l(a){m(a);C.fireCallback(b.onSlideTouch,C,a)}function m(a){if(!a.currentTarget){var c=a.srcElement;do{if(c.className.indexOf(b.slideClass)>-1){break}c=c.parentNode}while(c);C.clickedSlide=c}else{C.clickedSlide=a.currentTarget}C.clickedSlideIndex=C.slides.indexOf(C.clickedSlide);C.clickedSlideLoopIndex=C.clickedSlideIndex-(C.loopedSlides||0)}function n(a){if(!C.allowLinks){if(a.preventDefault)a.preventDefault();else a.returnValue=false;if(b.preventLinksPropagation&&"stopPropagation"in a){a.stopPropagation()}return false}}function o(a){if(a.stopPropagation)a.stopPropagation();else a.returnValue=false;return false}function p(a){if(b.preventLinks)C.allowLinks=true;if(C.isTouched||b.onlyExternal){return false}if(b.noSwiping&&(a.target||a.srcElement)&&s(a.target||a.srcElement))return false;Y=false;C.isTouched=true;W=a.type==="touchstart";if(!W||a.targetTouches.length===1){C.callPlugins("onTouchStartBegin");if(!W&&!C.isAndroid){if(a.preventDefault)a.preventDefault();else a.returnValue=false}var c=W?a.targetTouches[0].pageX:a.pageX||a.clientX;var d=W?a.targetTouches[0].pageY:a.pageY||a.clientY;C.touches.startX=C.touches.currentX=c;C.touches.startY=C.touches.currentY=d;C.touches.start=C.touches.current=M?c:d;C.setWrapperTransition(0);C.positions.start=C.positions.current=C.getWrapperTranslate();C.setWrapperTranslate(C.positions.start);C.times.start=(new Date).getTime();H=undefined;if(b.moveStartThreshold>0){X=false}if(b.onTouchStart)C.fireCallback(b.onTouchStart,C,a);C.callPlugins("onTouchStartEnd")}}function q(a){if(!C.isTouched||b.onlyExternal)return;if(W&&a.type==="mousemove")return;var c=W?a.targetTouches[0].pageX:a.pageX||a.clientX;var d=W?a.targetTouches[0].pageY:a.pageY||a.clientY;if(typeof H==="undefined"&&M){H=!!(H||Math.abs(d-C.touches.startY)>Math.abs(c-C.touches.startX))}if(typeof H==="undefined"&&!M){H=!!(H||Math.abs(d-C.touches.startY)0&&b.onResistanceBefore){C.fireCallback(b.onResistanceBefore,C,C.positions.current)}if(C.positions.current<-e()&&b.onResistanceAfter){C.fireCallback(b.onResistanceAfter,C,Math.abs(C.positions.current+e()))}if(b.resistance&&b.resistance!=="100%"){var f;if(C.positions.current>0){f=1-C.positions.current/I/2;if(f<.5)C.positions.current=I/2;else C.positions.current=C.positions.current*f}if(C.positions.current<-e()){var g=(C.touches.current-C.touches.start)*b.touchRatio+(e()+C.positions.start);f=(I+g)/I;var h=C.positions.current-g*(1-f)/2;var i=-e()-I/2;if(h0&&!(b.freeMode&&!b.freeModeFluid)){ C.positions.current=0}if(C.positions.current<-e()&&!(b.freeMode&&!b.freeModeFluid)){C.positions.current=-e()}}if(!b.followFinger)return;if(!b.moveStartThreshold){C.setWrapperTranslate(C.positions.current)}else{if(Math.abs(C.touches.current-C.touches.start)>b.moveStartThreshold||X){if(!X){X=true;C.touches.start=C.touches.current;return}C.setWrapperTranslate(C.positions.current)}else{C.positions.current=C.positions.start}}if(b.freeMode||b.watchActiveIndex){C.updateActiveSlide(C.positions.current)}if(b.grabCursor){C.container.style.cursor="move";C.container.style.cursor="grabbing";C.container.style.cursor="-moz-grabbin";C.container.style.cursor="-webkit-grabbing"}if(!Z)Z=C.touches.current;if(!$)$=(new Date).getTime();C.velocity=(C.touches.current-Z)/((new Date).getTime()-$)/2;if(Math.abs(C.touches.current-Z)<2)C.velocity=0;Z=C.touches.current;$=(new Date).getTime();C.callPlugins("onTouchMoveEnd");if(b.onTouchMove)C.fireCallback(b.onTouchMove,C,a);return false}}function r(a){if(H){C.swipeReset()}if(b.onlyExternal||!C.isTouched)return;C.isTouched=false;if(b.grabCursor){C.container.style.cursor="move";C.container.style.cursor="grab";C.container.style.cursor="-moz-grab";C.container.style.cursor="-webkit-grab"}if(!C.positions.current&&C.positions.current!==0){C.positions.current=C.positions.start}if(b.followFinger){C.setWrapperTranslate(C.positions.current)}C.times.end=(new Date).getTime();C.touches.diff=C.touches.current-C.touches.start;C.touches.abs=Math.abs(C.touches.diff);C.positions.diff=C.positions.current-C.positions.start;C.positions.abs=Math.abs(C.positions.diff);var c=C.positions.diff;var d=C.positions.abs;var f=C.times.end-C.times.start;if(d<5&&f<300&&C.allowLinks===false){if(!b.freeMode&&d!==0)C.swipeReset();if(b.preventLinks){C.allowLinks=true}if(b.onSlideClick){C.allowSlideClick=true}}setTimeout(function(){if(b.preventLinks){C.allowLinks=true}if(b.onSlideClick){C.allowSlideClick=true}},100);var g=e();if(!C.isMoved&&b.freeMode){C.isMoved=false;if(b.onTouchEnd)C.fireCallback(b.onTouchEnd,C,a);C.callPlugins("onTouchEnd");return}if(!C.isMoved||C.positions.current>0||C.positions.current<-g){C.swipeReset();if(b.onTouchEnd)C.fireCallback(b.onTouchEnd,C,a);C.callPlugins("onTouchEnd");return}C.isMoved=false;if(b.freeMode){if(b.freeModeFluid){var h=1e3*b.momentumRatio;var i=C.velocity*h;var j=C.positions.current+i;var k=false;var l;var m=Math.abs(C.velocity)*20*b.momentumBounceRatio;if(j<-g){if(b.momentumBounce&&C.support.transitions){if(j+g<-m)j=-g-m;l=-g;k=true;Y=true}else j=-g}if(j>0){if(b.momentumBounce&&C.support.transitions){if(j>m)j=m;l=0;k=true;Y=true}else j=0}if(C.velocity!==0)h=Math.abs((j-C.positions.current)/C.velocity);C.setWrapperTranslate(j);C.setWrapperTransition(h);if(b.momentumBounce&&k){C.wrapperTransitionEnd(function(){if(!Y)return;if(b.onMomentumBounce)C.fireCallback(b.onMomentumBounce,C);C.callPlugins("onMomentumBounce");C.setWrapperTranslate(l);C.setWrapperTransition(300)})}C.updateActiveSlide(j)}if(!b.freeModeFluid||f>=300)C.updateActiveSlide(C.positions.current);if(b.onTouchEnd)C.fireCallback(b.onTouchEnd,C,a);C.callPlugins("onTouchEnd");return}G=c<0?"toNext":"toPrev";if(G==="toNext"&&f<=300){if(d<30||!b.shortSwipes)C.swipeReset();else C.swipeNext(true)}if(G==="toPrev"&&f<=300){if(d<30||!b.shortSwipes)C.swipeReset();else C.swipePrev(true)}var n=0;if(b.slidesPerView==="auto"){var o=Math.abs(C.getWrapperTranslate());var p=0;var q;for(var r=0;ro){n=q;break}}if(n>I)n=I}else{n=E*b.slidesPerView}if(G==="toNext"&&f>300){if(d>=n*b.longSwipesRatio){C.swipeNext(true)}else{C.swipeReset()}}if(G==="toPrev"&&f>300){if(d>=n*b.longSwipesRatio){C.swipePrev(true)}else{C.swipeReset()}}if(b.onTouchEnd)C.fireCallback(b.onTouchEnd,C,a);C.callPlugins("onTouchEnd")}function s(a){var c=false;do{if(a.className.indexOf(b.noSwipingClass)>-1){c=true}a=a.parentElement}while(!c&&a.parentElement&&a.className.indexOf(b.wrapperClass)===-1);if(!c&&a.className.indexOf(b.wrapperClass)>-1&&a.className.indexOf(b.noSwipingClass)>-1)c=true;return c}function t(a,b){var c=document.createElement("div");var d;c.innerHTML=b;d=c.firstChild;d.className+=" "+a;return d.outerHTML}function u(a,c,d){function e(){var f=+new Date;var l=f-g;h+=i*l/(1e3/60);k=j==="toNext"?h>a:h=0?d.speed:b.speed;var g=+new Date;if(C.support.transitions||!b.DOMAnimation){C.setWrapperTranslate(a);C.setWrapperTransition(f)}else{var h=C.getWrapperTranslate();var i=Math.ceil((a-h)/f*(1e3/60));var j=h>a?"toNext":"toPrev";var k=j==="toNext"?h>a:h0&&C.slides.length===0){C.loadSlides()}if(b.loop){C.createLoop()}C.init();f();if(b.pagination){C.createPagination(true)}if(b.loop||b.initialSlide>0){C.swipeTo(b.initialSlide,0,false)}else{C.updateActiveSlide(0)}if(b.autoplay){C.startAutoplay()}C.centerIndex=C.activeIndex;if(b.onSwiperCreated)C.fireCallback(b.onSwiperCreated,C);C.callPlugins("onSwiperCreated")}if(document.body.__defineGetter__){if(HTMLElement){var B=HTMLElement.prototype;if(B.__defineGetter__){B.__defineGetter__("outerHTML",function(){return(new XMLSerializer).serializeToString(this)})}}}if(!window.getComputedStyle){window.getComputedStyle=function(a,b){this.el=a;this.getPropertyValue=function(b){var c=/(\-([a-z]){1})/g;if(b==="float")b="styleFloat";if(c.test(b)){b=b.replace(c,function(){return arguments[2].toUpperCase()})}return a.currentStyle[b]?a.currentStyle[b]:null};return this}}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(a,b){for(var c=b||0,d=this.length;c=0;var D,E,F,G,H,I;var J={eventTarget:"wrapper",mode:"horizontal",touchRatio:1,speed:300,freeMode:false,freeModeFluid:false,momentumRatio:1,momentumBounce:true,momentumBounceRatio:1,slidesPerView:1,slidesPerGroup:1,slidesPerViewFit:true,simulateTouch:true,followFinger:true,shortSwipes:true,longSwipesRatio:.5,moveStartThreshold:false,onlyExternal:false,createPagination:true,pagination:false,paginationElement:"span",paginationClickable:false,paginationAsRange:true,resistance:true,scrollContainer:false,preventLinks:true,preventLinksPropagation:false,noSwiping:false,noSwipingClass:"swiper-no-swiping",initialSlide:0,keyboardControl:false,mousewheelControl:false,mousewheelControlForceToAxis:false,useCSS3Transforms:true,autoplay:false,autoplayDisableOnInteraction:true,autoplayStopOnLast:false,loop:false,loopAdditionalSlides:0,roundLengths:false,calculateHeight:false,cssWidthAndHeight:false,updateOnImagesReady:true,releaseFormElements:true,watchActiveIndex:false,visibilityFullFit:false,offsetPxBefore:0,offsetPxAfter:0,offsetSlidesBefore:0,offsetSlidesAfter:0,centeredSlides:false,queueStartCallbacks:false,queueEndCallbacks:false,autoResize:true,resizeReInit:false,DOMAnimation:true,loader:{slides:[],slidesHTMLType:"inner",surroundGroups:1,logic:"reload",loadAllSlides:false},slideElement:"div",slideClass:"swiper-slide",slideActiveClass:"swiper-slide-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",wrapperClass:"mk-swiper-wrapper",paginationElementClass:"swiper-pagination-switch",paginationActiveClass:"swiper-active-switch",paginationVisibleClass:"swiper-visible-switch"};b=b||{};for(var K in J){if(K in b&&typeof b[K]==="object"){for(var L in J[K]){if(!(L in b[K])){b[K][L]=J[K][L]}}}else if(!(K in b)){b[K]=J[K]}}C.params=b;if(b.scrollContainer){b.freeMode=true;b.freeModeFluid=true}if(b.loop){b.resistance="100%"}var M=b.mode==="horizontal";var N=["mousedown","mousemove","mouseup"];if(C.browser.ie10)N=["MSPointerDown","MSPointerMove","MSPointerUp"];if(C.browser.ie11)N=["pointerdown","pointermove","pointerup"];C.touchEvents={touchStart:C.support.touch||!b.simulateTouch?"touchstart":N[0],touchMove:C.support.touch||!b.simulateTouch?"touchmove":N[1],touchEnd:C.support.touch||!b.simulateTouch?"touchend":N[2]};for(var O=C.container.childNodes.length-1;O>=0;O--){if(C.container.childNodes[O].className){var P=C.container.childNodes[O].className.split(/\s+/);for(var Q=0;Q=0;c--){if(a===C.slides[c])b=c}return b};a.isActive=function(){if(a.index()===C.activeIndex)return true;else return false};if(!a.swiperSlideDataStorage)a.swiperSlideDataStorage={};a.getData=function(b){return a.swiperSlideDataStorage[b]};a.setData=function(b,c){a.swiperSlideDataStorage[b]=c;return a};a.data=function(b,c){if(typeof c==="undefined"){return a.getAttribute("data-"+b)}else{a.setAttribute("data-"+b,c);return a}};a.getWidth=function(b,c){return C.h.getWidth(a,b,c)};a.getHeight=function(b,c){return C.h.getHeight(a,b,c)};a.getOffset=function(){return C.h.getOffset(a)};return a};C.calcSlides=function(a){var c=C.slides?C.slides.length:false;C.slides=[];C.displaySlides=[];for(var d=0;d=0;d--){C._extendSwiperSlide(C.slides[d])}if(c===false)return;if(c!==C.slides.length||a){h();g();C.updateActiveSlide();if(C.params.pagination)C.createPagination();C.callPlugins("numberOfSlidesChanged")}};C.createSlide=function(a,c,d){c=c||C.params.slideClass;d=d||b.slideElement;var e=document.createElement(d);e.innerHTML=a||"";e.className=c;return C._extendSwiperSlide(e)};C.appendSlide=function(a,b,c){if(!a)return;if(a.nodeType){return C._extendSwiperSlide(a).append()}else{return C.createSlide(a,b,c).append()}};C.prependSlide=function(a,b,c){if(!a)return;if(a.nodeType){return C._extendSwiperSlide(a).prepend()}else{return C.createSlide(a,b,c).prepend()}};C.insertSlideAfter=function(a,b,c,d){if(typeof a==="undefined")return false;if(b.nodeType){return C._extendSwiperSlide(b).insertAfter(a)}else{return C.createSlide(b,c,d).insertAfter(a)}};C.removeSlide=function(a){if(C.slides[a]){if(b.loop){if(!C.slides[a+C.loopedSlides])return false;C.slides[a+C.loopedSlides].remove();C.removeLoopedSlides();C.calcSlides();C.createLoop()}else C.slides[a].remove();return true}else return false};C.removeLastSlide=function(){if(C.slides.length>0){if(b.loop){C.slides[C.slides.length-1-C.loopedSlides].remove();C.removeLoopedSlides();C.calcSlides();C.createLoop()}else C.slides[C.slides.length-1].remove();return true}else{return false}};C.removeAllSlides=function(){for(var a=C.slides.length-1;a>=0;a--){C.slides[a].remove()}};C.getSlide=function(a){return C.slides[a]};C.getLastSlide=function(){return C.slides[C.slides.length-1]};C.getFirstSlide=function(){return C.slides[0]};C.activeSlide=function(){return C.slides[C.activeIndex]};C.fireCallback=function(){var a=arguments[0];if(Object.prototype.toString.call(a)==="[object Array]"){for(var c=0;c0){m.style.paddingLeft="";m.style.paddingRight="";m.style.paddingTop="";m.style.paddingBottom=""}m.style.width="";m.style.height="";if(b.offsetPxBefore>0){if(M)C.wrapperLeft=b.offsetPxBefore;else C.wrapperTop=b.offsetPxBefore}if(b.offsetPxAfter>0){if(M)C.wrapperRight=b.offsetPxAfter;else C.wrapperBottom=b.offsetPxAfter}if(b.centeredSlides){if(M){C.wrapperLeft=(I-this.slides[0].getWidth(true,b.roundLengths))/2;C.wrapperRight=(I-C.slides[C.slides.length-1].getWidth(true,b.roundLengths))/2}else{C.wrapperTop=(I-C.slides[0].getHeight(true,b.roundLengths))/2;C.wrapperBottom=(I-C.slides[C.slides.length-1].getHeight(true,b.roundLengths))/2}}if(M){if(C.wrapperLeft>=0)m.style.paddingLeft=C.wrapperLeft+"px";if(C.wrapperRight>=0)m.style.paddingRight=C.wrapperRight+"px"}else{if(C.wrapperTop>=0)m.style.paddingTop=C.wrapperTop+"px";if(C.wrapperBottom>=0)m.style.paddingBottom=C.wrapperBottom+"px"}k=0;var p=0;C.snapGrid=[];C.slidesGrid=[];h=0;for(l=0;lI){if(b.slidesPerViewFit){C.snapGrid.push(k+C.wrapperLeft);C.snapGrid.push(k+q-I+C.wrapperLeft)}else{for(var u=0;u<=Math.floor(q/(I+C.wrapperLeft));u++){if(u===0)C.snapGrid.push(k+C.wrapperLeft);else C.snapGrid.push(k+C.wrapperLeft+I*u)}}C.slidesGrid.push(k+C.wrapperLeft)}else{C.snapGrid.push(p);C.slidesGrid.push(p)}p+=q/2+t/2}else{if(q>I){if(b.slidesPerViewFit){C.snapGrid.push(k);C.snapGrid.push(k+q-I)}else{if(I!==0){for(var v=0;v<=Math.floor(q/I);v++){C.snapGrid.push(k+I*v)}}else{C.snapGrid.push(k)}}}else{C.snapGrid.push(k)}C.slidesGrid.push(k)}k+=q;n+=f;o+=g}if(b.calculateHeight)C.height=h;if(M){F=n+C.wrapperRight+C.wrapperLeft;m.style.width=n+"px";m.style.height=C.height+"px"}else{F=o+C.wrapperTop+C.wrapperBottom;m.style.width=C.width+"px";m.style.height=o+"px"}}else if(b.scrollContainer){m.style.width="";m.style.height="";i=C.slides[0].getWidth(true,b.roundLengths);j=C.slides[0].getHeight(true,b.roundLengths);F=M?i:j;m.style.width=i+"px";m.style.height=j+"px";E=M?i:j}else{if(b.calculateHeight){h=0;j=0;if(!M)C.container.style.height="";m.style.height="";for(l=0;l0){if(M)C.wrapperLeft=E*b.offsetSlidesBefore;else C.wrapperTop=E*b.offsetSlidesBefore}if(b.offsetSlidesAfter>0){if(M)C.wrapperRight=E*b.offsetSlidesAfter;else C.wrapperBottom=E*b.offsetSlidesAfter}if(b.offsetPxBefore>0){if(M)C.wrapperLeft=b.offsetPxBefore;else C.wrapperTop=b.offsetPxBefore}if(b.offsetPxAfter>0){if(M)C.wrapperRight=b.offsetPxAfter;else C.wrapperBottom=b.offsetPxAfter}if(b.centeredSlides){if(M){C.wrapperLeft=(I-E)/2;C.wrapperRight=(I-E)/2}else{C.wrapperTop=(I-E)/2;C.wrapperBottom=(I-E)/2}}if(M){if(C.wrapperLeft>0)m.style.paddingLeft=C.wrapperLeft+"px";if(C.wrapperRight>0)m.style.paddingRight=C.wrapperRight+"px"}else{if(C.wrapperTop>0)m.style.paddingTop=C.wrapperTop+"px";if(C.wrapperBottom>0)m.style.paddingBottom=C.wrapperBottom+"px"}F=M?i+C.wrapperRight+C.wrapperLeft:j+C.wrapperTop+C.wrapperBottom;if(!b.cssWidthAndHeight){if(parseFloat(i)>0){m.style.width=i+"px"}if(parseFloat(j)>0){m.style.height=j+"px"}}k=0;C.snapGrid=[];C.slidesGrid=[];for(l=0;l0){C.slides[l].style.width=f+"px"}if(parseFloat(g)>0){C.slides[l].style.height=g+"px"}}}}if(!C.initialized){C.callPlugins("onFirstInit");if(b.onFirstInit)C.fireCallback(b.onFirstInit,C)}else{C.callPlugins("onInit");if(b.onInit)C.fireCallback(b.onInit,C)}C.initialized=true};C.reInit=function(a){C.init(true,a)};C.resizeFix=function(a){C.callPlugins("beforeResizeFix");C.init(b.resizeReInit||a);if(!b.freeMode){C.swipeTo(b.loop?C.activeLoopIndex:C.activeIndex,0,false);if(b.autoplay){if(C.support.transitions&&typeof _!=="undefined"){if(typeof _!=="undefined"){clearTimeout(_);_=undefined;C.startAutoplay()}}else{if(typeof aa!=="undefined"){clearInterval(aa);aa=undefined;C.startAutoplay()}}}}else if(C.getWrapperTranslate()<-e()){C.setWrapperTransition(0);C.setWrapperTranslate(-e())}C.callPlugins("afterResizeFix")};C.destroy=function(){var a=C.h.removeEventListener;var c=b.eventTarget==="wrapper"?C.wrapper:C.container;if(!(C.browser.ie10||C.browser.ie11)){if(C.support.touch){a(c,"touchstart",p);a(c,"touchmove",q);a(c,"touchend",r)}if(b.simulateTouch){a(c,"mousedown",p);a(document,"mousemove",q);a(document,"mouseup",r)}}else{a(c,C.touchEvents.touchStart,p);a(document,C.touchEvents.touchMove,q);a(document,C.touchEvents.touchEnd,r)}if(b.autoResize){a(window,"resize",C.resizeFix)}h();if(b.paginationClickable){w()}if(b.mousewheelControl&&C._wheelEvent){a(C.container,C._wheelEvent,j)}if(b.keyboardControl){a(document,"keydown",i)}if(b.autoplay){C.stopAutoplay()}C.callPlugins("onDestroy");C=null};C.disableKeyboardControl=function(){b.keyboardControl=false;C.h.removeEventListener(document,"keydown",i)};C.enableKeyboardControl=function(){b.keyboardControl=true;C.h.addEventListener(document,"keydown",i)};var U=(new Date).getTime();C.disableMousewheelControl=function(){if(!C._wheelEvent)return false;b.mousewheelControl=false;C.h.removeEventListener(C.container,C._wheelEvent,j);return true};C.enableMousewheelControl=function(){if(!C._wheelEvent)return false;b.mousewheelControl=true;C.h.addEventListener(C.container,C._wheelEvent,j);return true};if(b.grabCursor){var V=C.container.style;V.cursor="move";V.cursor="grab";V.cursor="-moz-grab";V.cursor="-webkit-grab"}C.allowSlideClick=true;C.allowLinks=true;var W=false;var X;var Y=true;var Z,$;C.swipeNext=function(a){if(!a&&b.loop)C.fixLoop();if(!a&&b.autoplay)C.stopAutoplay(true);C.callPlugins("onSwipeNext");var c=C.getWrapperTranslate();var d=c;if(b.slidesPerView==="auto"){for(var f=0;f=C.snapGrid[f]&&-cC.snapGrid[e]&&-c0)d=0;if(d===c)return false;u(d,"prev");return true};C.swipeReset=function(){C.callPlugins("onSwipeReset");var a=C.getWrapperTranslate();var c=E*b.slidesPerGroup;var d;var f=-e();if(b.slidesPerView==="auto"){d=0;for(var g=0;g=C.snapGrid[g]&&-a0)d=-C.snapGrid[g+1];else d=-C.snapGrid[g];break}}if(-a>=C.snapGrid[C.snapGrid.length-1])d=-C.snapGrid[C.snapGrid.length-1];if(a<=-e())d=-e()}else{d=a<0?Math.ceil(a/c)*c:0}if(b.scrollContainer){d=a<0?a:0}if(d<-e()){d=-e()}if(b.scrollContainer&&I>E){d=0}if(d===a)return false;u(d,"reset");return true};C.swipeTo=function(a,c,d){a=parseInt(a,10);C.callPlugins("onSwipeTo",{index:a,speed:c});if(b.loop)a=a+C.loopedSlides;var f=C.getWrapperTranslate();if(a>C.slides.length-1||a<0)return;var g;if(b.slidesPerView==="auto"){g=-C.slidesGrid[a]}else{g=-a*E}if(g<-e()){g=-e()}if(g===f)return false;d=d===false?false:true;u(g,"to",{index:a,speed:c,runCallbacks:d});return true};C._queueStartCallbacks=false;C._queueEndCallbacks=false;C.updateActiveSlide=function(a){if(!C.initialized)return;if(C.slides.length===0)return;C.previousIndex=C.activeIndex;if(typeof a==="undefined")a=C.getWrapperTranslate();if(a>0)a=0;var c;if(b.slidesPerView==="auto"){var d=0;C.activeIndex=C.slidesGrid.indexOf(-a);if(C.activeIndex<0){for(c=0;cC.slidesGrid[c]&&-a=0){g.classList.add(b.slideVisibleClass)}else{g.classList.remove(b.slideVisibleClass)}}C.slides[C.activeIndex].classList.add(b.slideActiveClass)}else{var h=new RegExp("\\s*"+b.slideActiveClass);var i=new RegExp("\\s*"+b.slideVisibleClass);for(c=0;c=0){C.slides[c].className+=" "+b.slideVisibleClass}}C.slides[C.activeIndex].className+=" "+b.slideActiveClass}if(b.loop){var j=C.loopedSlides;C.activeLoopIndex=C.activeIndex-j;if(C.activeLoopIndex>=C.slides.length-j*2){C.activeLoopIndex=C.slides.length-j*2-C.activeLoopIndex}if(C.activeLoopIndex<0){C.activeLoopIndex=C.slides.length-j*2+C.activeLoopIndex}if(C.activeLoopIndex<0)C.activeLoopIndex=0}else{C.activeLoopIndex=C.activeIndex}if(b.pagination){C.updatePagination(a)}};C.createPagination=function(a){if(b.paginationClickable&&C.paginationButtons){w()}C.paginationContainer=b.pagination.nodeType?b.pagination:c(b.pagination)[0];if(b.createPagination){var d="";var e=C.slides.length;var f=e;if(b.loop)f-=C.loopedSlides*2;for(var g=0;g"}C.paginationContainer.innerHTML=d}C.paginationButtons=c("."+b.paginationElementClass,C.paginationContainer);if(!a)C.updatePagination();C.callPlugins("onCreatePagination");if(b.paginationClickable){x()}};C.updatePagination=function(a){if(!b.pagination)return;if(C.slides.length<1)return;var d=c("."+b.paginationActiveClass,C.paginationContainer);if(!d)return;var e=C.paginationButtons;if(e.length===0)return;for(var f=0;f=C.slides.length-C.loopedSlides*2){j=C.slides.length-C.loopedSlides*2-j;j=Math.abs(j)}h.push(j)}for(i=0;i0)a=a+C.wrapperLeft;if(!M&&C.wrapperTop>0)a=a+C.wrapperTop;for(var g=0;g=-a&&f<=-a+I)h=true;if(d<=-a&&f>=-a+I)h=true}else{if(f>-a&&f<=-a+I)h=true;if(d>=-a&&d<-a+I)h=true;if(d<-a&&f>-a+I)h=true}if(h)c.push(C.slides[g])}if(c.length===0)c=[C.slides[C.activeIndex]];C.visibleSlides=c};var _,aa;C.startAutoplay=function(){if(C.support.transitions){if(typeof _!=="undefined")return false;if(!b.autoplay)return;C.callPlugins("onAutoplayStart");if(b.onAutoplayStart)C.fireCallback(b.onAutoplayStart,C);z()}else{if(typeof aa!=="undefined")return false;if(!b.autoplay)return;C.callPlugins("onAutoplayStart");if(b.onAutoplayStart)C.fireCallback(b.onAutoplayStart,C);aa=setInterval(function(){if(b.loop){C.fixLoop();C.swipeNext(true)}else if(!C.swipeNext(true)){if(!b.autoplayStopOnLast)C.swipeTo(0);else{clearInterval(aa);aa=undefined}}},b.autoplay)}};C.stopAutoplay=function(a){if(C.support.transitions){if(!_)return;if(_)clearTimeout(_);_=undefined;if(a&&!b.autoplayDisableOnInteraction){C.wrapperTransitionEnd(function(){z()})}C.callPlugins("onAutoplayStop");if(b.onAutoplayStop)C.fireCallback(b.onAutoplayStop,C)}else{if(aa)clearInterval(aa);aa=undefined;C.callPlugins("onAutoplayStop");if(b.onAutoplayStop)C.fireCallback(b.onAutoplayStop,C)}};C.loopCreated=false;C.removeLoopedSlides=function(){if(C.loopCreated){for(var a=0;aC.slides.length){C.loopedSlides=C.slides.length}var a="",c="",d;var e="";var f=C.slides.length;var g=Math.floor(C.loopedSlides/f);var h=C.loopedSlides%f;for(d=0;d=f){var j=Math.floor(d/f);i=d-f*j}e+=C.slides[i].outerHTML}for(d=0;d=C.slides.length-C.loopedSlides)C.slides[d].setData("looped",true)}C.callPlugins("onCreateLoop")};C.fixLoop=function(){var a;if(C.activeIndex=C.loopedSlides*2||C.activeIndex>C.slides.length-b.slidesPerView*2){a=-C.slides.length+C.activeIndex+C.loopedSlides;C.swipeTo(a,0,false)}};C.loadSlides=function(){var a="";C.activeLoaderIndex=0;var c=b.loader.slides;var d=b.loader.loadAllSlides?c.length:b.slidesPerView*(1+b.loader.surroundGroups);for(var e=0;e'+c[e]+""}}C.wrapper.innerHTML=a;C.calcSlides(true);if(!b.loader.loadAllSlides){C.wrapperTransitionEnd(C.reloadSlides,true)}};C.reloadSlides=function(){var a=b.loader.slides;var c=parseInt(C.activeSlide().data("swiperindex"),10);if(c<0||c>a.length-1)return;C.activeLoaderIndex=c;var d=Math.max(0,c-b.slidesPerView*b.loader.surroundGroups);var e=Math.min(c+b.slidesPerView*(1+b.loader.surroundGroups)-1,a.length-1);if(c>0){var f=-E*(c-d);C.setWrapperTranslate(f);C.setWrapperTransition(0)}var g;if(b.loader.logic==="reload"){C.wrapper.innerHTML="";var h="";for(g=d;g<=e;g++){h+=b.loader.slidesHTMLType==="outer"?a[g]:"<"+b.slideElement+' class="'+b.slideClass+'" data-swiperindex="'+g+'">'+a[g]+""}C.wrapper.innerHTML=h}else{var i=1e3;var j=0;for(g=0;ge){C.wrapper.removeChild(C.slides[g])}else{i=Math.min(k,i);j=Math.max(k,j)}}for(g=d;g<=e;g++){var l;if(gj){l=document.createElement(b.slideElement);l.className=b.slideClass;l.setAttribute("data-swiperindex",g);l.innerHTML=a[g];C.wrapper.appendChild(l)}}}C.reInit(true)};A()};Swiper.prototype={plugins:{},wrapperTransitionEnd:function(a,b){"use strict";function c(){a(d);if(d.params.queueEndCallbacks)d._queueEndCallbacks=false;if(!b){ for(g=0;g0||e<0){e=a.offsetWidth-parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-left"))-parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-right"))}if(b)e+=parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-left"))+parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-right"));if(c)return Math.ceil(e);else return e},getHeight:function(a,b,c){"use strict";if(b)return a.offsetHeight;var d=window.getComputedStyle(a,null).getPropertyValue("height");var e=parseFloat(d);if(isNaN(e)||d.indexOf("%")>0||e<0){e=a.offsetHeight-parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-top"))-parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-bottom"))}if(b)e+=parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-top"))+parseFloat(window.getComputedStyle(a,null).getPropertyValue("padding-bottom"));if(c)return Math.ceil(e);else return e},getOffset:function(a){"use strict";var b=a.getBoundingClientRect();var c=document.body;var d=a.clientTop||c.clientTop||0;var e=a.clientLeft||c.clientLeft||0;var f=window.pageYOffset||a.scrollTop;var g=window.pageXOffset||a.scrollLeft;if(document.documentElement&&!window.pageYOffset){f=document.documentElement.scrollTop;g=document.documentElement.scrollLeft}return{top:b.top+f-d,left:b.left+g-e}},windowWidth:function(){"use strict";if(window.innerWidth)return window.innerWidth;else if(document.documentElement&&document.documentElement.clientWidth)return document.documentElement.clientWidth},windowHeight:function(){"use strict";if(window.innerHeight)return window.innerHeight;else if(document.documentElement&&document.documentElement.clientHeight)return document.documentElement.clientHeight},windowScroll:function(){"use strict";if(typeof pageYOffset!=="undefined"){return{left:window.pageXOffset,top:window.pageYOffset}}else if(document.documentElement){return{left:document.documentElement.scrollLeft,top:document.documentElement.scrollTop}}},addEventListener:function(a,b,c,d){"use strict";if(typeof d==="undefined"){d=false}if(a.addEventListener){a.addEventListener(b,c,d)}else if(a.attachEvent){a.attachEvent("on"+b,c)}},removeEventListener:function(a,b,c,d){"use strict";if(typeof d==="undefined"){d=false}if(a.removeEventListener){a.removeEventListener(b,c,d)}else if(a.detachEvent){a.detachEvent("on"+b,c)}}},setTransform:function(a,b){"use strict";var c=a.style;c.webkitTransform=c.MsTransform=c.msTransform=c.MozTransform=c.OTransform=c.transform=b},setTranslate:function(a,b){"use strict";var c=a.style;var d={x:b.x||0,y:b.y||0,z:b.z||0};var e=this.support.transforms3d?"translate3d("+d.x+"px,"+d.y+"px,"+d.z+"px)":"translate("+d.x+"px,"+d.y+"px)";c.webkitTransform=c.MsTransform=c.msTransform=c.MozTransform=c.OTransform=c.transform=e;if(!this.support.transforms){c.left=d.x+"px";c.top=d.y+"px"}},setTransition:function(a,b){"use strict";var c=a.style;c.webkitTransitionDuration=c.MsTransitionDuration=c.msTransitionDuration=c.MozTransitionDuration=c.OTransitionDuration=c.transitionDuration=b+"ms"},support:{touch:window.Modernizr&&Modernizr.touch===true||function(){"use strict";return!!("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch)}(),transforms3d:window.Modernizr&&Modernizr.csstransforms3d===true||function(){"use strict";var a=document.createElement("div").style;return"webkitPerspective"in a||"MozPerspective"in a||"OPerspective"in a||"MsPerspective"in a||"perspective"in a}(),transforms:window.Modernizr&&Modernizr.csstransforms===true||function(){"use strict";var a=document.createElement("div").style;return"transform"in a||"WebkitTransform"in a||"MozTransform"in a||"msTransform"in a||"MsTransform"in a||"OTransform"in a}(),transitions:window.Modernizr&&Modernizr.csstransitions===true||function(){"use strict";var a=document.createElement("div").style;return"transition"in a||"WebkitTransition"in a||"MozTransition"in a||"msTransition"in a||"MsTransition"in a||"OTransition"in a}(),classList:function(){"use strict";var a=document.createElement("div").style;return"classList"in a}()},browser:{ie8:function(){"use strict";var a=-1;if(navigator.appName==="Microsoft Internet Explorer"){var b=navigator.userAgent;var c=new RegExp(/MSIE ([0-9]{1,}[\.0-9]{0,})/);if(c.exec(b)!==null)a=parseFloat(RegExp.$1)}return a!==-1&&a<9}(),ie10:window.navigator.msPointerEnabled,ie11:window.navigator.pointerEnabled}};if(window.jQuery||window.Zepto){(function(a){"use strict";a.fn.swiper=function(b){var c=new Swiper(a(this)[0],b);a(this).data("swiper",c);return c}})(window.jQuery||window.Zepto)}if(typeof module!=="undefined"){module.exports=Swiper}if(typeof define==="function"&&define.amd){define([],function(){"use strict";return Swiper})}Swiper.prototype.plugins.progress=function(a,b){"use strict";var c=a.params.mode==="horizontal";var d;function e(){for(var b=0;b li").each(function(b,c){if(a(c).find("ul").length>0){a(c).addClass("with-menu")}})})},addListeners:function(b){var c=this;a(b).mouseover(function(a){c.handleMouseOver.call(c,a)}).mouseout(function(a){c.handleMouseOut.call(c,a)})},handleMouseOver:function(a){var b=this;this.clearTimeout();var c=a.target||a.srcElement;while(c.nodeName!="LI"&&c!=this.node){c=c.parentNode}if(c.nodeName=="LI"){this.toOpen=c;this.timeout=setTimeout(function(){b.open.call(b)},this.options.delay)}},handleMouseOut:function(){var a=this;this.clearTimeout();this.timeout=setTimeout(function(){a.close.call(a)},this.options.delay)},clearTimeout:function(){if(this.timeout){clearTimeout(this.timeout);this.timeout=null}},open:function(){var d=this;this.isOpen=true;var e=a(this.toOpen).parent().children("li");a(e).each(function(e,f){a(f).find("ul").each(function(e,g){if(f!=d.toOpen){a(f).removeClass("dropdownOpen");d.close(f)}else if(!a(f).hasClass("dropdownOpen")){a(f).addClass("dropdownOpen");var h=0;var i=g;while(i){h+=Math.abs(i.offsetLeft);i=i.offsetParent}var j=h+g.offsetWidth;var k=a(g).outerHeight();var l=a(g).offset().top-a(b).scrollTop();var m=k+l;var n=b.innerHeight;a(f).removeClass("dropdownRightToLeft");if(h<0)a(f).addClass("dropdownLeftToRight");if(j>c.body.clientWidth){a(f).addClass("dropdownRightToLeft")}}})})},close:function(b){if(!b){this.isOpen=false;b=this.node}a(b).find("li").each(function(b,c){a(c).removeClass("dropdownOpen")})}};a.fn[e]=function(b){return this.each(function(){if(!a.data(this,"plugin_"+e)){a.data(this,"plugin_"+e,new i(this,b))}})}})(jQuery,window,document);(function(a,b,c){"use strict";var d=b.Modernizr,e=a("body");a.DLMenu=function(b,c){this.$el=a(c);this._init(b)};a.DLMenu.defaults={animationClasses:{classin:"mk-vm-animate-in-"+a("body").attr("data-vm-anim"),classout:"mk-vm-animate-out-"+a("body").attr("data-vm-anim")},onLevelClick:function(a,b){return false},onLinkClick:function(a,b){return false}};a.DLMenu.prototype={_init:function(b){this.options=a.extend(true,{},a.DLMenu.defaults,b);this._config();var c={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd",animation:"animationend"},e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd",transition:"transitionend"};this.animEndEventName=c[d.prefixed("animation")]+".dlmenu";this.transEndEventName=e[d.prefixed("transition")]+".dlmenu",this.supportAnimations=d.cssanimations,this.supportTransitions=d.csstransitions;this._initEvents()},_config:function(){this.open=false;var b=a("body").attr("data-backText");this.$trigger=this.$el.children(".mk-vm-trigger");this.$menu=this.$el.children("ul.mk-vm-menu");this.$menuitems=this.$menu.find("li:not(.mk-vm-back)");this.$el.find("ul.sub-menu").prepend('

  • '+b+"
  • ");this.$back=this.$menu.find("li.mk-vm-back")},_initEvents:function(){var b=this;this.$trigger.on("click.dlmenu",function(){if(b.open){b._closeMenu()}else{b._openMenu()}return false});this.$menuitems.on("click.dlmenu",function(c){c.stopPropagation();var d=a(this),e=d.children("ul.sub-menu");if(e.length>0){var f=e.clone().css("opacity",0).insertAfter(b.$menu),g=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classout).addClass("mk-vm-subview");d.addClass("mk-vm-subviewopen").parents(".mk-vm-subviewopen:first").removeClass("mk-vm-subviewopen").addClass("mk-vm-subview");f.remove()};setTimeout(function(){f.addClass(b.options.animationClasses.classin);b.$menu.addClass(b.options.animationClasses.classout);if(b.supportAnimations){b.$menu.on(b.animEndEventName,g)}else{g.call()}b.options.onLevelClick(d,d.children("a:first").text())});return false}else{b.options.onLinkClick(d,c)}});this.$back.on("click.dlmenu",function(c){var d=a(this),e=d.parents("ul.sub-menu:first"),f=e.parent(),g=e.clone().insertAfter(b.$menu);var h=function(){b.$menu.off(b.animEndEventName).removeClass(b.options.animationClasses.classin);g.remove()};setTimeout(function(){g.addClass(b.options.animationClasses.classout);b.$menu.addClass(b.options.animationClasses.classin);if(b.supportAnimations){b.$menu.on(b.animEndEventName,h)}else{h.call()}f.removeClass("mk-vm-subviewopen");var a=d.parents(".mk-vm-subview:first");if(a.is("li")){a.addClass("mk-vm-subviewopen")}a.removeClass("mk-vm-subview")});return false})},closeMenu:function(){if(this.open){this._closeMenu()}},_closeMenu:function(){var a=this,b=function(){a.$menu.off(a.transEndEventName);a._resetMenu()};this.$menu.removeClass("mk-vm-menuopen");this.$menu.addClass("mk-vm-menu-toggle");this.$trigger.removeClass("mk-vm-active");if(this.supportTransitions){this.$menu.on(this.transEndEventName,b)}else{b.call()}this.open=false},openMenu:function(){if(!this.open){this._openMenu()}},_openMenu:function(){var b=this;e.off("click").on("click.dlmenu",function(){b._closeMenu()});this.$menu.addClass("mk-vm-menuopen mk-vm-menu-toggle").on(this.transEndEventName,function(){a(this).removeClass("mk-vm-menu-toggle")});this.$trigger.addClass("mk-vm-active");this.open=true},_resetMenu:function(){this.$menu.removeClass("mk-vm-subview");this.$menuitems.removeClass("mk-vm-subview mk-vm-subviewopen")}};var f=function(a){if(b.console){b.console.error(a)}};a.fn.dlmenu=function(b){if(typeof b==="string"){var c=Array.prototype.slice.call(arguments,1);this.each(function(){var d=a.data(this,"dlmenu");if(!d){f("cannot call methods on dlmenu prior to initialization; "+"attempted to call method '"+b+"'");return}if(!a.isFunction(d[b])||b.charAt(0)==="_"){f("no such method '"+b+"' for dlmenu instance");return}d[b].apply(d,c)})}else{this.each(function(){var c=a.data(this,"dlmenu");if(c){c._init()}else{c=a.data(this,"dlmenu",new a.DLMenu(b,this))}})}return this}})(jQuery,window);(function(a,b,c,d){var e="sectiontrans",f={effect:"fade"};function g(b,c){this.element=b;this.options=a.extend({},f,c);this._defaults=f;this._name=e;this.effectClassName="intro-effect-"+this.options.effect;this.init()}g.prototype={init:function(){var c=this.scrollY();this.noscroll=c===0;this.disable_scroll();a(this.element).addClass(this.effectClassName);if(c){this.isRevealed=true;a(this.element).addClass("notrans");a(this.element).addClass("modify")}var d=this;b.addEventListener("scroll",function(a){d.scrollPage.call(d,a)})},keys:[32,37,38,39,40],docElem:b.document.documentElement,scrollVal:0,isRevealed:false,noscroll:false,isAnimating:false,trigger:a("button.trigger"),preventDefault:function(a){a=a||b.event;if(a.preventDefault)a.preventDefault();a.returnValue=false},ie:function(){var a,c=-1;var d=b.navigator.userAgent;var e=d.indexOf("MSIE ");var f=d.indexOf("Trident/");if(e>0){c=parseInt(d.substring(e+5,d.indexOf(".",e)),10)}else if(f>0){var g=d.indexOf("rv:");c=parseInt(d.substring(g+3,d.indexOf(".",g)),10)}return c>-1?c:a}(),wheel:function(a){if(!this.scrollY()&&!this.isAnimating){if(a.wheelDelta>0&&this.isRevealed)this.toggle(0);else if(a.wheelDelta<=0&&!this.isRevealed)this.toggle(1)}a.preventDefault()},disable_scroll:function(){b.onmousewheel=c.onmousewheel=this.wheel.bind(this)},enable_scroll:function(){b.onmousewheel=c.onmousewheel=c.onkeydown=c.body.ontouchmove=null},scrollY:function(){return b.pageYOffset||this.docElem.scrollTop},scrollPage:function(){this.scrollVal=this.scrollY();if(this.noscroll){if(this.scrollVal<0)return false;b.scrollTo(0,0)}if(a(this.element).hasClass("notrans")){a(this.element).removeClass("notrans");return false}if(this.isAnimating){return false}if(this.scrollVal<=0&&this.isRevealed){this.toggle(0)}else if(this.scrollVal>0&&!this.isRevealed){this.toggle(1)}},toggle:function(b){this.isAnimating=true;if(b){a(this.element).addClass("mk-intro-triggered");a("."+this.effectClassName).next().next().addClass("mk-intro-triggered"+" "+"page-effect-"+this.options.effect);a("body").addClass("mk-intro-triggered").trigger("page_intro")}else{this.noscroll=true;this.disable_scroll();a(this.element).removeClass("mk-intro-triggered");a("."+this.effectClassName).next().next().removeClass("mk-intro-triggered"+" "+"page-effect-"+this.options.effect);a("body").removeClass("mk-intro-triggered").trigger("page_outro")}var c=this;setTimeout(function(){c.isRevealed=!c.isRevealed;c.isAnimating=false;if(b){c.noscroll=false;c.enable_scroll()}},1200)}};a.fn[e]=function(b){return this.each(function(){if(!a.data(this,"plugin_"+e)){a.data(this,"plugin_"+e,new g(this,b))}})}})(jQuery,window,document);(function(a,b,c){"use strict";var d="Parallax";var e=30;var f={relativeInput:false,clipRelativeInput:false,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:false,calibrateY:true,invertX:true,invertY:true,limitX:false,limitY:false,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5};function g(a,b){this.element=a;this.layers=a.getElementsByClassName("layer");var c={calibrateX:this.data(this.element,"calibrate-x"),calibrateY:this.data(this.element,"calibrate-y"),invertX:this.data(this.element,"invert-x"),invertY:this.data(this.element,"invert-y"),limitX:this.data(this.element,"limit-x"),limitY:this.data(this.element,"limit-y"),scalarX:this.data(this.element,"scalar-x"),scalarY:this.data(this.element,"scalar-y"),frictionX:this.data(this.element,"friction-x"),frictionY:this.data(this.element,"friction-y"),originX:this.data(this.element,"origin-x"),originY:this.data(this.element,"origin-y")};for(var d in c){if(c[d]===null)delete c[d]}this.extend(this,f,b,c);this.calibrationTimer=null;this.calibrationFlag=true;this.enabled=false;this.depths=[];this.raf=null;this.bounds=null;this.ex=0;this.ey=0;this.ew=0;this.eh=0;this.ecx=0;this.ecy=0;this.erx=0;this.ery=0;this.cx=0;this.cy=0;this.ix=0;this.iy=0;this.mx=0;this.my=0;this.vx=0;this.vy=0;this.onMouseMove=this.onMouseMove.bind(this);this.onDeviceOrientation=this.onDeviceOrientation.bind(this);this.onOrientationTimer=this.onOrientationTimer.bind(this);this.onCalibrationTimer=this.onCalibrationTimer.bind(this);this.onAnimationFrame=this.onAnimationFrame.bind(this);this.onWindowResize=this.onWindowResize.bind(this);this.initialise()}g.prototype.extend=function(){if(arguments.length>1){var a=arguments[0];for(var b=1,c=arguments.length;b0&&g!=="none";n.style.overflow=o;m.removeChild(e)}break}return h};g.prototype.ww=null;g.prototype.wh=null;g.prototype.wcx=null;g.prototype.wcy=null;g.prototype.wrx=null;g.prototype.wry=null;g.prototype.portrait=null;g.prototype.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i);g.prototype.vendors=[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]];g.prototype.motionSupport=!!a.DeviceMotionEvent;g.prototype.orientationSupport=!!a.DeviceOrientationEvent;g.prototype.orientationStatus=0;g.prototype.transform2DSupport=g.prototype.transformSupport("2D");g.prototype.transform3DSupport=g.prototype.transformSupport("3D");g.prototype.propertyCache={};g.prototype.initialise=function(){if(this.transform3DSupport)this.accelerate(this.element);var b=a.getComputedStyle(this.element);if(b.getPropertyValue("position")==="static"){this.element.style.position="relative"}this.updateLayers();this.updateDimensions();this.enable();this.queueCalibration(this.calibrationDelay)};g.prototype.updateLayers=function(){this.layers=this.element.getElementsByClassName("layer");this.depths=[];for(var a=0,b=this.layers.length;athis.calibrationThreshold||Math.abs(b)>this.calibrationThreshold){this.queueCalibration(0)}if(this.portrait){this.mx=this.calibrateX?b:this.iy;this.my=this.calibrateY?a:this.ix}else{this.mx=this.calibrateX?a:this.ix;this.my=this.calibrateY?b:this.iy}this.mx*=this.ew*(this.scalarX/100);this.my*=this.eh*(this.scalarY/100);if(!isNaN(parseFloat(this.limitX))){this.mx=this.clamp(this.mx,-this.limitX,this.limitX)}if(!isNaN(parseFloat(this.limitY))){this.my=this.clamp(this.my,-this.limitY,this.limitY)}this.vx+=(this.mx-this.vx)*this.frictionX;this.vy+=(this.my-this.vy)*this.frictionY;for(var c=0,d=this.layers.length;cthis.ww;if(this.portrait!==d){this.portrait=d;this.calibrationFlag=true}if(this.calibrationFlag){this.calibrationFlag=false;this.cx=b;this.cy=c}this.ix=b;this.iy=c}};g.prototype.onMouseMove=function(a){var b=a.clientX;var c=a.clientY;if(!this.orientationSupport&&this.relativeInput){if(this.clipRelativeInput){b=Math.max(b,this.ex);b=Math.min(b,this.ex+this.ew);c=Math.max(c,this.ey);c=Math.min(c,this.ey+this.eh)}this.ix=(b-this.ex-this.ecx)/this.erx;this.iy=(c-this.ey-this.ecy)/this.ery}else{this.ix=(b-this.wcx)/this.wrx;this.iy=(c-this.wcy)/this.wry}};a[d]=g})(window,document);(function(){var a=0;var b=["ms","moz","webkit","o"];for(var c=0;c div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',c=document.head||document.getElementsByTagName("head")[0],d=document.createElement("style");d.type="text/css";if(d.styleSheet){d.styleSheet.cssText=a}else{d.appendChild(document.createTextNode(a))}c.appendChild(d);b=true}}window.addResizeListener=function(b,c){if(a)b.attachEvent("onresize",c);else{if(!b.__resizeTriggers__){if(getComputedStyle(b).position=="static")b.style.position="relative";t();b.__resizeLast__={};b.__resizeListeners__=[];(b.__resizeTriggers__=document.createElement("div")).className="resize-triggers";b.__resizeTriggers__.innerHTML='
    '+'
    ';b.appendChild(b.__resizeTriggers__);e(b);b.addEventListener("scroll",g,true);k&&b.__resizeTriggers__.addEventListener(k,function(a){if(a.animationName==q)e(b)})}b.__resizeListeners__.push(c)}};window.removeResizeListener=function(b,c){if(a)b.detachEvent("onresize",c);else{b.__resizeListeners__.splice(b.__resizeListeners__.indexOf(c),1);if(!b.__resizeListeners__.length){b.removeEventListener("scroll",g);b.__resizeTriggers__=!b.removeChild(b.__resizeTriggers__)}}}})(); (function(a){(function(){"use strict";ken.modules={};d();e();c();ken.utils.polyfills.initAll()})();function b(a){jQuery("#mk-header.transparent-header").removeClass("light-header-skin dark-header-skin").addClass(a+"-header-skin")}function c(){(function(a){"use strict";ken.modules.header=function(){var b={calcHeight:h};var c=a(window);var d=ken.utils.JSONLookup("theme_header"),e=ken.utils.JSONLookup("mk_header"),f=0,g=0;function h(){if(php.hasAdminbar){if(c.width()>782){f=32}else{f=46}}g=f+(d[0]!=undefined?d[0].params.stickyHeight:0)+(e[0]!=undefined?e[0].params.stickyHeight:0);return Math.round(g)}return b}()})(jQuery)}function d(){(function(){ken.utils=function(){"use strict";var a={JSONLookup:b};function b(a){var b=[];for(var c=0,d=php.json.length;c0){b.ajaxDiv.css("height",d+"px").transition({height:0,opacity:0},600)}else{b.ajaxDiv.transition({height:0,opacity:0},600)}setTimeout(function(){a(window).trigger("resize")},600)},load_project:function(){var b=this;a.post(ajaxurl,{action:"mk_ajax_portfolio",id:b.id},function(c){b.ajaxDiv.find(".ajax_project").remove();b.ajaxDiv.find(".portfolio-ajax-holder").append(c);b.project_factory();H();U();L();P();R();aa();ba();a(window).trigger("reload")})},project_factory:function(){var b=this,c=this.ajaxDiv.find(".ajax_project");c.waitForImages(function(){a("html:not(:animated),body:not(:animated)").animate({scrollTop:b.ajaxDiv.offset().top-160},700);b.loader.fadeOut(function(){var a=c.actual("outerHeight");b.ajaxDiv.transition({opacity:1,height:a},400,function(){b.ajaxDiv.css({height:"auto"})})})})}};a.fn[b]=function(c){return this.each(function(){a.data(this,"plugin_"+b,new d(this,c))})};a(".portfolio-grid.portfolio-ajax-enabled").ajaxPortfolio()})(jQuery);(function(a){var b=function(b){a("html, body").stop().animate({scrollTop:b},{duration:1200,easing:"easeInOutExpo"})};var c=function(c){var d=a(c);if(!d.length)return;var e=d.offset().top;var f=a("#mk-header").data("sticky-height");e=e-f;if(c==="#top-of-page")window.history.replaceState(undefined,undefined," ");else window.history.replaceState(undefined,undefined,c);b(e)};var d=function(){var a=window.location,b=a.hash;if(b.length&&b.substring(1).length){b=b.replace("!loading","");setTimeout(function(){c(b)},1e3);setTimeout(function(){window.history.replaceState(undefined,undefined,b)},1001)}};a(window).on("load",d)})(jQuery);var f={};f.scroll=function(){var a=[38,40];function b(a){a=a||window.event;a.preventDefault();a.returnValue=false}function c(a){b(a)}function d(c){for(var d=a.length;d--;){if(c.keyCode===a[d]){b(c);return}}}function e(){if(window.addEventListener){window.addEventListener("DOMMouseScroll",c,false)}window.onmousewheel=document.onmousewheel=c;document.onkeydown=d}function f(){if(window.removeEventListener){window.removeEventListener("DOMMouseScroll",c,false)}window.onmousewheel=document.onmousewheel=document.onkeydown=null}return{disable:e,enable:f}}();(function(){"use strict";var a=[38,40];function b(a){a=a||window.event;if(a.preventDefault)a.preventDefault();a.returnValue=false}function c(c){for(var d=a.length;d--;){if(c.keyCode===a[d]){b(c);return}}}function d(a){b(a)}var e=function(){if(window.addEventListener){window.addEventListener("DOMMouseScroll",d,false)}window.onmousewheel=document.onmousewheel=d;document.onkeydown=c};var f=function(){if(window.removeEventListener){window.removeEventListener("DOMMouseScroll",d,false)}window.onmousewheel=document.onmousewheel=document.onkeydown=null};window.disableScroll=e;window.enableScroll=f})();"use strict";var g={};function h(){return(!!("ontouchstart"in window)||!!("onmsgesturechange"in window))&&a(window).width()<1140}a.exists=function(b){return a(b).length>0};a.fn.hasAttr=function(a){return this.attr(a)!==undefined};var i={init:function(){this.browser=this.searchString(this.dataBrowser)||"Other";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"Unknown"},searchString:function(a){for(var b=0;b0){return parseInt(a.substring(b+5,a.indexOf(".",b)),10)}if(c>0){var d=a.indexOf("rv:");return parseInt(a.substring(d+3,a.indexOf(".",d)),10)}return false}var k=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,l=a(window).width(),m=a(window).height(),n,o=0;a(window).load(function(){if(a.exists("#wpadminbar")){n=a("#wpadminbar")}});if(php.hasAdminbar){if(a(window).width()>782){o=32}else{o=46}}function p(){l=a(window).width();m=a(window).height()}window.scroll=function(){k=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop};g.fullHeight=function(){var b=a("#mk-header"),c=a(window).height(),d=o,e;var f=0;if(b)f=b.data("height");if(b.hasClass("transparent-header"))f=0;if(b.hasClass("sticky-trigger-header"))f=b.data("sticky-height");if(b.hasClass("header-structure-vertical"))f=0;e=c-(d+f);return e};g.smoothScrollTo=function(b,c){a("html, body").stop().animate({scrollTop:b},{duration:c,easing:"easeInOutExpo"})};var q=function(a,b){var c=Date.now(),d=null;return function e(){if(Date.now()-c>b){c=Date.now();clearTimeout(d);window.requestAnimationFrame(a)}else{clearTimeout(d);d=setTimeout(e,b)}}};var r={sets:[],init:function(){this.update();this.attachEvents()},attachEvents:function(){window.addEventListener("scroll",q(this.play.bind(this),0))},add:function(a){this.sets.push(a)},play:function(){this.update();this.sets.forEach(function(a){a(k)}.bind(this))},update:function(){k=window.pageYOffset!==undefined?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}};r.init();var s={sets:[],init:function(){this.attachEvents()},attachEvents:function(){window.addEventListener("scroll",q(this.play.bind(this),200))},add:function(a){this.sets.push(a)},play:function(){this.sets.forEach(function(a){a(k)}.bind(this))}};s.init();function t(){if(a.exists("#mk-header.theme-main-header.header-align-center")){var b=a(".theme-main-header .main-navigation-ul"),c=b.find("> .menu-item"),d=b.find(".mk-header-logo"),e=0,f=0,g=0,h=0,i=Math.floor(c.length/2),j=Math.ceil(c.length/2);for(var k=0;k=h){d.clone().addClass("mk-header-logo-center").insertAfter(c[j-1]);d.remove()}else{d.clone().addClass("mk-header-logo-center").insertAfter(c[i-1]);d.remove()}}}t();function u(){"use strict";var b=a(".theme-main-header"),c=a("#theme-page .vc_row").first().find(".mk-secondary-header"),d=a(".sticky-header-padding");if(b.length&&c.length){b.append(c);c.removeClass("sticky-header");var e=b.data("height"),f=b.data("sticky-height"),g=c.height(),h=c.data("sticky-height");if(mk_header_sticky==1){var i=parseInt(d.css("padding-top").replace("px",""))}b.attr("data-height",e+g);b.attr("data-sticky-height",f+h);d.css({"padding-top":i+g+"px"})}}u();function v(){"use strict";if(!h()){a("#mk-page-title").each(function(){var b,c,d=a(this),e=d.outerHeight(),f=d.attr("data-fullHeight"),g=0,h=d.offset().top+e,i=d.find(".mk-page-title-bg"),j=d.find(".mk-effect-gradient-layer"),l=d.attr("data-intro");var n=function(){var b=d.find(".mk-page-heading"),c=d.attr("data-fullHeight"),e=0,f=d.attr("data-height"),g=0;if(a.exists("#mk-header.sticky-header")&&!a("#mk-header").hasClass("transparent-header")){var e=parseInt(a("#mk-header.sticky-header").attr("data-sticky-height"))}if(c==="true"){g=m-e-o}else{g=f}d.css("height",g);if(a("#mk-header").hasClass("transparent-header")&&c=="true"){var h=parseInt(a("#mk-header").attr("data-height"));var i=parseInt(d.css("padding-top"));d.css({padding:0});b.css({"padding-top":g/2-b.height()/2+"px"})}};n();if(f=="true"){a(window).on("debouncedresize",function(){n()})}if(a("#mk-header").hasClass("transparent-header")&&f!="true"){var p=parseInt(a("#mk-header").attr("data-height"));var q=parseInt(d.css("padding-top"));d.css({"padding-top":q+p+"px"})}var s=.7,t=1.4;if(l=="parallax"){var u=function(){c=(g+k)*s;i.css({transform:"translateY("+c+"px)"})};u();r.add(u)}if(l=="parallaxZoomOut"){var u=function(){c=(g+k)*s;b=1/(h-g)*(k-g);var a=t-(t-1.2)*b;i.css({transform:"translateY("+c+"px), scale("+a+")"})};u();r.add(u)}if(l=="gradient"){var u=function(){b=1/(h-g)*(k-g);j.css({opacity:b*2})};u();r.add(u)}})}}var w={loader:function(a){var b=a,c=b.find(".mk-progress-button .mk-progress-inner"),d=b.find(".mk-progress-button .mk-progress-button-content"),e=new TimelineLite;e.to(c,0,{width:"100%",scaleX:0,scaleY:1}).to(d,.3,{y:-5}).to(c,1.5,{scaleX:1,ease:Power2.easeInOut},"-=.1").to(d,.3,{y:0}).to(c,.3,{scaleY:0})},success:function(a){var b=a,c=b.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),d=b.find(".mk-progress-button .state-success"),e=new TimelineLite({onComplete:f});e.to(c,.3,{paddingRight:20,ease:Power2.easeInOut},"+=1").to(d,.3,{opacity:1}).to(d,2,{opacity:1});function f(){e.reverse()}},error:function(a){var b=a,c=b.find(".mk-button .mk-progress-button-content, .mk-contact-button .mk-progress-button-content"),d=b.find(".mk-progress-button .state-error"),e=new TimelineLite({onComplete:f});e.to(c,.3,{paddingRight:20},"+=1").to(d,.3,{opacity:1}).to(d,2,{opacity:1});function f(){e.reverse()}}};function x(){var b=a("#mk-footer"),c=a("#mk-footer-fixed-spacer"),d=b.outerHeight();if(!window.matchMedia("(max-width: 767px)").matches){if(b.hasClass("mk-footer-fixed")){c.css("height",d)}}else{c.css("height",0)}}x();a(window).on("debouncedresize",function(){x()});function y(){if(!a.exists(".mk-window-scroller")){return false}a(".mk-window-scroller").each(function(){var b=a(this),c=b.attr("data-height"),d=b.find("img"),e=parseInt(b.attr("data-speed"));b.stop(true,true).hoverIntent(function(){d.animate({top:-(d.height()-c)},e)},function(){d.animate({top:0},e/3)})})}function z(){var b=a("#mk-header").first();if(b.hasClass("sticky-header")&&l>mk_nav_res_width){var c=b.attr("data-header-structure");if(c=="vertical"){var d=100}else{var d=parseInt(mk_header_padding*2+mk_logo_height)+30}var e=function(){if(l>mk_nav_res_width){if(k>d){b.addClass("sticky-trigger-header")}else{b.removeClass("sticky-trigger-header")}}};s.add(e)}}function A(){var b=a("#mk-header");if(b.hasClass("transparent-header")&&b.hasClass("sticky-header")&&l>mk_nav_res_width){var c=false;var d=function(){var d=a(".mk-edge-slider.first-el-true").find(".swiper-slide-active").attr("data-header-skin"),e=b.attr("data-header-structure");if(e=="vertical"){var f=100}else{var f=parseInt(mk_header_padding*2+mk_logo_height)+30}mk_header_trans_offset=mk_header_trans_offset==0?m:mk_header_trans_offset;if(l>mk_nav_res_width){if(k>f||c){b.addClass("header-offset-passed")}else{b.removeClass("header-offset-passed")}if(k>mk_header_trans_offset||c){b.addClass("transparent-header-sticky sticky-trigger-header").removeClass("light-header-skin dark-header-skin")}else{if(d!=""&&typeof d!=="undefined"){b.removeClass("transparent-header-sticky sticky-trigger-header").addClass(d+"-header-skin")}else{b.removeClass("transparent-header-sticky sticky-trigger-header").addClass(b.attr("data-transparent-skin")+"-header-skin")}}}};s.add(d);a("body").on("page_intro",function(){setTimeout(function(){c=true;d()},1e3)});a("body").on("page_outro",function(){setTimeout(function(){c=false;d()},500)})}}function B(){"use strict";var b=a("body");if(!b.hasClass("navigation-initialised")){a(".main-navigation-ul").MegaMenu({type:"vertical",delay:200});a("#mk-vm-menu").dlmenu();b.addClass("navigation-initialised")}}(function(a){"use strict";var b=false;function c(){var b=l>mk_nav_res_width;if(!a.exists(".mk-responsive-nav")){var c=a(".responsive-nav-container");a(".main-navigation-ul, .mk-vertical-menu").each(function(){var b=a(this),d=b.attr("id");b.clone().attr({class:"mk-responsive-nav "+d+"-mk-responsive-nav"}).appendTo(c);c.addClass(d+"-res-nav-appended")});a(".mk-responsive-nav > li").stop(true).on("click",function(b){var c=a(this),d=c.find(".mk-nav-arrow");if(a(b.target).hasClass("mk-nav-arrow")||a(b.target).hasClass("mk-nav-open")){if(d.hasClass("mk-nav-sub-closed")){d.parent().siblings("ul").slideDown(450).end().end().removeClass("mk-nav-sub-closed").addClass("mk-nav-sub-opened")}else{d.parent().siblings("ul").slideUp(450).end().end().removeClass("mk-nav-sub-opened").addClass("mk-nav-sub-closed")}b.preventDefault()}});if(!a.exists("#mk-responsive-wrap")){var d=0;var e=a(window).outerHeight();if(a.exists("#wpadminbar")){d+=a("#wpadminbar").outerHeight()}if(a.exists(".responsive-nav-container")){d+=a("#mk-header").height();var f=e-d;a(".responsive-nav-container").wrap('
    ')}a(window).on("resize",function(){a("#mk-responsive-wrap").css({"max-height":a(window).height()-d+"px"})})}a(".mk-responsive-nav > li > ul").each(function(){if(!a(this).siblings("a").find("span").length){a(this).siblings("a").append('')}})}if(b){a(".mk-responsive-nav").hide();setTimeout(B,200);if(a("#mk-header").attr("data-header-style")=="transparent"){a("#mk-header").addClass("transparent-header "+a("#mk-header").attr("data-transparent-skin")+"-header-skin")}}else{if(a("#mk-header").attr("data-header-style")=="transparent"){a("#mk-header").removeClass("transparent-header "+a("#mk-header").attr("data-transparent-skin")+"-header-skin")}}if(ld){b.addClass("secondary-header-sticky").css("top",c+o);a(".secondary-header-space").addClass("secondary-space-sticky")}else{b.removeClass("secondary-header-sticky").css("top","auto");a(".secondary-header-space").removeClass("secondary-space-sticky")}};s.add(e)}}}var F=function(){return{init:function(){var b=!!window.devicePixelRatio?window.devicePixelRatio:1;if(b>1){a("img").each(function(b,c){c=a(c);if(c.attr("data-retina-src")){c.attr("data-src-orig",c.attr("src"));c.attr("src",c.attr("data-retina-src"))}})}}}}();F.init();a(window).load(function(){a(".mk-milestone").one("inview",function(b,c){if(c==true){var d=a(this),e=d.find(".milestone-number").attr("data-stop"),f=parseInt(d.find(".milestone-number").attr("data-speed"));a({countNum:d.find(".milestone-number").text()}).animate({countNum:e},{duration:f,step:function(){d.find(".milestone-number").text(Math.floor(this.countNum))},complete:function(){d.find(".milestone-number").text(this.countNum)}})}});a(".mk-skill-meter .progress-outer").one("inview",function(b,c){if(c==true){var d=a(this);d.animate({width:a(this).attr("data-width")+"%"},2e3)}});a(".mk-chart").one("inview",function(b,c){if(c==true){var d=a(this),e=a(this).parent().width(),f=d.attr("data-barSize");if(e

    '+i+"

    "]}if(j&&k){c[1]=[l,j,k];d[1]=['

    '+l+"

    "]}if(n&&p){c[2]=[q,n,p];d[2]=['

    '+q+"

    "]}var m=new google.maps.InfoWindow,o,x;for(x=0;x
    ',image:'',error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'',next:'',prev:'',loading:'
    '}})}function I(){a(".mk-edge-slider").each(function(c,d){var e=a(this),f=a(".mk-edge-nav"),j=e.find(".mk-edge-next"),k=e.find(".mk-edge-prev"),l=e.data("pause"),m=e.data("first"),n=e.data("speed"),p=e.data("loop"),q=e.data("height"),s=e.data("fullheight"),t=e.data("pagination"),u=t?"#"+e.attr("id")+" .swiper-pagination":false,v=0,w=0,x=i.browser=="IE"&&e.data("animation")=="horizontal_curtain"?"slide":e.data("animation");function y(){w=s?g.fullHeight():q}y();var z=k.find(".prev-item-caption");var A=j.find(".next-item-caption");var B=k.find(".edge-nav-bg");var C=j.find(".edge-nav-bg");var D=e.find(".swiper-slide");var E=e.find(".slide-next-nr");var F=e.find(".slide-prev-nr");var G=e.find(".slides-all");function H(a){var b=a;var c=b.prev();var d=b.next();var e=c.find(".mk-edge-title").text();var g=d.find(".mk-edge-title").text();var h=c.css("background-image");var i=d.css("background-image");var j=c.find(".mk-video-section-touch").css("background-image");var k=d.find(".mk-video-section-touch").css("background-image");var l=c.css("background-color");var m=d.css("background-color");if(e)z.show().text(e);if(g)A.show().text(g);if(h&&h!="none")B.show().css({"background-image":h});else if(j&&j!="none")B.show().css({"background-image":j});else if(l)B.show().css({"background-color":l});if(i&&i!="none")C.show().css({"background-image":i});else if(k&&k!="none")C.show().css({"background-image":k});else if(m)C.show().css({"background-color":m});if(f.hasClass("nav-flip")){ var n=b.data("sliderIndex")+1;G.text(D.length);F.text(n===1?D.length:n-1);E.text(n===D.length?1:n+1)}}function I(a,b){k[!a.data("sliderIndex")?"fadeOut":"fadeIn"]();j[a.data("sliderIndex")===D.length-1?"fadeOut":"fadeIn"]();b[a.data("sliderIndex")===D.length-1?"stopAutoplay":"startAutoplay"]()}D.each(K);function K(b,c){a(c).attr("data-slider-index",b)}var L=a("#mk-header");var M=e.find(".edge-skip-slider");function N(c){var d=c;var e=d.attr("data-header-skin");k.attr("data-skin",e);j.attr("data-skin",e);M.attr("data-skin",e);a(u).attr("data-skin",e);if(!L.hasClass("transparent-header-sticky")&&m)b(e)}e.find(".mk-animate-element").removeClass("mk-animate-element fade-in scale-up right-to-left left-to-right bottom-to-top top-to-bottom forthy-five-rotate");if(t)e.find(".edge-skip-slider").css("bottom","14%");var O=e.swiper({mode:"horizontal",loop:p,roundLengths:true,calculateHeight:true,grabCursor:true,useCSS3Transforms:true,mousewheelControl:false,pagination:u,paginationClickable:true,freeModeFluid:true,speed:n,autoplay:l,progress:true,autoplayDisableOnInteraction:false,onSwiperCreated:function(b){var c=e.find(".swiper-slide-active");H(c);N(c);if(!p)I(c,b);a(u).find("span").append('')},onSlideChangeEnd:function(a){var b=e.find(".swiper-slide-active");H(b);N(b);if(!p)I(b,a)},onProgressChange:function(a){for(var b=0;b0){j=(1-Math.min(Math.abs(d),1))/2;g=1-Math.min(Math.abs(d/2),1);k=0;f=0}a.setTransform(c,"translate3d("+e+"px,"+-f+"px,0) scale("+g+")");c.style.opacity=j;c.style.zIndex=k}else if(x=="fade"){var e,j,k;e=d*a.width;j=1-Math.min(Math.abs(d),1);k=(1-Math.min(Math.abs(d),1))*10;a.setTransform(c,"translate3d("+e+"px,0,0)");c.style.opacity=j;c.style.zIndex=k}else if(x=="horizontal_curtain"){var e,k,l;e=d*a.width;if(d<=0){k=1;e=0;l="ease"}else if(d>0){k=0;e=d*a.width/2;l="ease"}a.setTransform(c,"translate3d("+e/2+"px,0,0)");c.style.webkitTransitionTimingFunction=l;c.style.zIndex=k}else if(x=="perspective_flip"){var e,f,m;e=d*a.width;f=d*w;if(d>=0)m=0;else if(d<0)m=70;a.setTransform(c,"translate3d("+e+"px,"+-f+"px,0) rotateX("+m+"deg)")}}},onTouchStart:function(a){for(var b=0;b960){var h=f-c.outerHeight()-160;d.css("marginTop",h)}else{var e=c.outerHeight()/2,g=f/2;d.css("marginTop",g-e)}}});b.find(".edge-slider-loading").fadeOut()})}function K(){a(".mk-tab-slider").each(function(b,c){var d=a(this),e=null,f=null,g=null,h=d.data("pause"),i=d.data("speed"),j=d.data("height"),k=d.data("fullheight"),l=d.data("pagination"),n=l?"#"+d.attr("id")+" .swiper-pagination":false;d.find(".mk-animate-element").removeClass("mk-animate-element fade-in scale-up right-to-left left-to-right bottom-to-top top-to-bottom forthy-five-rotate");function p(){var b=j;if(k){var c=m-o,d=a("#mk-header"),e=d.length&&!d.hasClass("header-structure-vertical");b=e?c-d.data("sticky-height"):c}g.each(function(){var c=a(this),d=c.find(".mk-grid").outerHeight();b=Math.max(b,d)});g.each(function(){var c=a(this),d=c.hasClass("mk-half-layout-right");if(!d&&matchMedia("(max-width:960px)").matches)c.height(500);else c.height(b)})}var q=d.swiper({mode:"horizontal",loop:true,grabCursor:false,useCSS3Transforms:true,mousewheelControl:false,pagination:n,paginationClickable:true,freeModeFluid:true,calculateHeight:true,speed:i,autoplay:h,simulateTouch:false,autoplayDisableOnInteraction:false,onSwiperCreated:function(b){var c=d.find(".swiper-slide").eq(1).attr("data-skin");d.find(".edge-slider-loading").fadeOut();f=d.find(".swiper-slide");g=f.find(".mk-half-layout");p();if(!l)return;e=a(n);e.find("span").append('');e.attr("data-skin",c);e.on("click","span",function(b){b.preventDefault();q.swipeTo(a(this).index(),500)})},onSlideChangeEnd:function(){var b=a(q.activeSlide()),c=b.attr("data-skin");if(l)e.attr("data-skin",c)}});a(window).on("resize",function(){setTimeout(function(){p();q.reInit()},200)})})}function L(){a(".mk-swiper-slider").each(function(){var b=a(this);if(!(window.matchMedia("(max-width: 650px)").matches&&b.hasClass("mk-portfolio-scroller"))){if(b.data("state")!="init"){b.data("state","init");var c=b.parent().siblings(".gallery-thumbs-small"),d=b.find(".mk-swiper-next"),e=b.find(".mk-swiper-prev"),f=b.find(".swiper-slide");direction=b.data("direction"),pagination=b.data("pagination"),slideshowSpeed=b.data("slideshowspeed"),animationSpeed=b.data("animationspeed"),animation=i.browser=="IE"?"slide":b.attr("data-animation"),freeModeFluid=b.data("freemodefluid"),freeMode=b.data("freemode"),mousewheelControl=b.data("mousewheelcontrol"),autoplayStop=b.data("autoplaystop"),slidesPerView=b.data("slidesperview"),loop=b.data("loop"),pagination_class=pagination?"#"+b.attr("id")+" .swiper-pagination":false;var g=function(){if(b.hasClass("mk-employees")){slidesPerView=3;if(window.matchMedia("(max-width: 600px)").matches)slidesPerView=2;else slidesPerView=b.data("slidesperview")}if(b.hasClass("mk-blog-container")){slidesPerView="auto";if(window.matchMedia("(max-width: 460px)").matches)slidesPerView=1;else if(window.matchMedia("(max-width: 600px)").matches)slidesPerView=2;else slidesPerView=b.data("slidesperview")}};g();var h={mode:direction,loop:loop,freeMode:freeMode,pagination:pagination_class,freeModeFluid:freeModeFluid,autoplay:slideshowSpeed,speed:animationSpeed,calculateHeight:true,roundLengths:true,grabCursor:true,progress:true,useCSS3Transforms:true,mousewheelControl:mousewheelControl,mousewheelControlForceToAxis:true,paginationClickable:true,slidesPerView:slidesPerView,autoplayDisableOnInteraction:autoplayStop,onSwiperCreated:function(a){H()},onSlideChangeStart:function(){c.find(".active-item").removeClass("active-item");c.find("a").eq(j.activeIndex).addClass("active-item")},onProgressChange:function(a){if(b.attr("data-animation")!="fade")return;for(var c=0;ce){b.find("a").css("width",100/c+"%")}})}function N(){if(h()||l<800)return;a(".mk-page-section.parallax-true").each(function(){var b=a(this),c=b.attr("data-direction");if(c==="horizontal_mouse"||c==="vertical_mouse"||c==="both_axis_mouse"){var d=c==="vertical_mouse",e=c==="horizontal_mouse",f=c==="both_axis_mouse";if(f===true){e=true;d=true}var g=b;var h=g.find(".parallax-layer");var i=-.004;var j=50;var k=50;g.on("mousemove",function(a){var b=g.offset();var c=e?a.clientX-b.left-g.width()*.5:0;var f=d?a.pageY-b.top-g.height()*.5:0;TweenLite.to(h,3,{scale:1.2});TweenLite.to(h,1,{x:c*j*i,y:f*k*i})});g.on("mouseleave",function(){TweenLite.to(h,60,{x:0,y:0,scale:1})})}else{var b=a(this).find(".bg-layer > div"),l=b.offset();b.css("position","absolute");setTimeout(function(){b.each(function(){a(this).parallaxScroll({speed:.2,direction:c})})},2e3)}})}function O(){a(".mk-parent-element").each(function(){var b=a(this),c=b.outerWidth(),d=b.find(".mk-caption-item").outerHeight(),e=c-120;b.find(".mk-caption-item").css({width:e,"margin-top":-(d/2),"margin-left":-(e/2)})})}function P(){a(".mk-portfolio-item").each(function(){var b=a(this),c=b.outerWidth(),d=b.find(".portfolio-meta").outerHeight(),e=c>300?c-100:c-20;b.find(".portfolio-meta").css({width:e,"margin-top":-(d/2),"margin-left":-(e/2)});var f=a(this).find(".portfolio-entry-logo"),g=f.width(),h=f.height();f.css({"margin-left":-g/2,"margin-top":-h/2})})}function Q(){a(".mk-employees.grid-style .mk-employee-item").each(function(){var b=a(this),c=b.outerHeight();b.find(".team-info-wrapper").css({height:c})})}function R(){a(".mk-gallery-item").each(function(){var b=a(this),c=b.outerWidth(),d=b.find(".gallery-meta").outerHeight(),e;if(c<200){e=c}else{e=c-100}})}function S(){if(i.browser!=="IE"){return}var b=function(){var b=a(this);a(window).on("scroll",function(){b.click()})};a(".bg-layer").each(b)}S();function T(){a(".masonry-portfolio-item, .grid-portfolio-item, .mk-portfolio-scroller .mk-portfolio-item .item-holder").each(function(){var b=a(this);b.hover(function(){var a=new TimelineLite;a.set(b.find(".border-tb, .border-bt"),{opacity:1}).to(b.find(".border-tb, .border-bt"),1.2,{scaleY:1,ease:Power4.easeInOut});var c=new TimelineLite;c.set(b.find(".border-bl, .border-tr"),{opacity:1}).to(b.find(".border-bl, .border-tr"),1.2,{scaleX:1,ease:Power4.easeInOut})},function(){var a=new TimelineLite;a.to(b.find(".border-tb, .border-bt"),.8,{scaleY:0,ease:Power4.easeInOut}).set(b.find(".border-tb, .border-bt"),{opacity:0});var c=new TimelineLite;c.to(b.find(".border-bl, .border-tr"),.8,{scaleX:0,ease:Power4.easeInOut}).set(b.find(".border-bl, .border-tr"),{opacity:0})})});a(".mk-portfolio-item.parallax-hover .item-holder").each(function(){var b=a(this);var c=b.find(".item-featured-image");var d=-.004;var e=50;var f=50;b.on("mousemove",function(a){var g=b.offset();var h=a.clientX-g.left-b.width()*.5;var i=a.pageY-g.top-b.height()*.5;TweenLite.to(c,1,{scale:1.2});TweenLite.to(c,1,{x:h*e*d,y:i*f*d})});b.on("mouseleave",function(){TweenLite.to(c,.5,{x:0,y:0,scale:1})})})}function U(){if(a.exists(".mk-tabs")){a(".mk-tabs").tabs();a(".mk-tabs").on("click",function(){a(".mk-theme-loop").isotope("layout")});a(".mk-tabs.vertical-style").each(function(){var b=a(this),c=b.find(".inner-box"),d=a(this).find(".mk-tabs-tabs").height()+80;c.css("minHeight",d)})}}function V(){if(a.exists(".mk-tabs")){a(".mk-tabs").each(function(){var b=a(this);if(window.matchMedia("(max-width: 767px)").matches&&b.hasClass("mobile-true")){b.tabs("destroy")}else{U()}})}}function W(){if(a.exists(".jp-jplayer")){a(".jp-jplayer.mk-blog-audio").each(function(){var b="#"+a(this).siblings(".jp-audio").attr("id");var c,d,e;c=a(this).attr("data-ogg");d=a(this).attr("data-mp3");a(this).jPlayer({ready:function(){a(this).jPlayer("setMedia",{mp3:d,ogg:c})},play:function(){a(this).jPlayer("pauseOthers")},swfPath:e,supplied:"mp3, ogg",cssSelectorAncestor:b,wmode:"window"})})}}function X(a,b){var c=(new Date).getTime();return function(){var d=(new Date).getTime();if(d-c>=a){c=d;b.apply(null,arguments)}}}function Y(){a(".loop-main-wrapper").each(function(){var b=a(this),c=b.find(".mk-theme-loop"),d="."+c.attr("data-style")+"-"+c.attr("data-uniqid"),e=b.find(".mk-loadmore-button"),f=b.find(".mk-pagination");if(c.hasClass("isotop-enabled")){c.imagesLoaded(function(){c.isotope({itemSelector:d,animationEngine:"best-available",masonry:{columnWidth:1}});var b=a(".header-structure-vertical")[0],e=false;var f=function(){if(e)return;e=true;setTimeout(function(){c.isotope("layout");e=false},300)};if(b)window.addResizeListener(b,f)})}a(".mk-isotop-filter").on("click","a",function(){var b;b=a(this);TweenLite.to(b.parents(".portfolio-grid").find(".ajax-container"),.5,{height:0,opacity:0});if(b.hasClass(".current"))return false;var d=b.parents(".mk-isotop-filter ul");d.find(".current").removeClass("current");b.addClass("current");var e=a(this).attr("data-filter");c.isotope({filter:""});c.isotope({filter:e});return false});e.hide();if(b.find(".mk-theme-loop").hasClass("scroll-load-style")||b.find(".mk-theme-loop").hasClass("load-button-style")){if(f.length>0){e.css("display","block")}f.hide();e.on("click",function(){if(!a(this).hasClass("pagination-loading")){a(this).addClass("pagination-loading")}});c.infinitescroll({navSelector:f,nextSelector:b.find(".mk-pagination a:first"),itemSelector:d,bufferPx:70,loading:{finishedMsg:"",msg:null,msgText:"",selector:e,speed:300,start:undefined},errorCallback:function(){e.html(mk_no_more_posts).addClass("disable-pagination")}},function(b){var d=a(b);d.imagesLoaded(function(){e.removeClass("pagination-loading");c.isotope("appended",d);c.isotope({filter:""});var b=a(".mk-isotop-filter ul").find(".current").attr("data-filter");c.isotope({filter:b});c.isotope("layout");W();H();P();R();L();O();T()})});if(b.find(".mk-theme-loop").hasClass("load-button-style")){a(window).unbind(".infscr");e.click(function(){c.infinitescroll("retrieve");return false})}}else{e.hide()}})}function Z(){if(a.exists(".mk-blog-container")||a.exists(".mk-portfolio-container")){a(".mk-blog-container>article, .mk-portfolio-container>article").each(function(b){a(this).delay(b*100).animate({opacity:1},100)}).promise().done(function(){var b=a(".mk-theme-loop");var c=b.find(".mk-isotope-item");setTimeout(b.isotope,500,"layout")})}}function $(){if(a.exists(".mk-event-countdown")){a(".mk-event-countdown").each(function(){var b=a(this),c=b.attr("data-date"),d=b.attr("data-offset");b.downCount({date:c,offset:d})})}}function _(){if(a.exists(".mk-instagram-feeds")){a(".mk-instagram-feeds").each(function(){var b=a(this),c=b.attr("data-size"),d=b.attr("data-sort"),e=b.attr("data-count"),f=parseInt(b.attr("data-userid")),g=b.attr("data-accesstoken"),h=b.attr("data-column"),i=b.attr("id");var j=new Instafeed({get:"user",target:i,resolution:c,sortBy:d,limit:e,userId:f,accessToken:g,template:'
    '});j.run()})}}(function(a){"use strict";var b=a(".mk-accordion");if(!b.length)return;var c=function(b){var c=this,d=a(b),e=d.data("item-index")||0,f;this.$el=d;this.$single=a("."+this.dom.single,d);this.isExpendable=d.data("style")==="toggle-action";this.bindClicks();if(e!==-1)this.show(this.$single.eq(e));a(window).on("resize",function(){clearTimeout(f);f=setTimeout(c.bindClicks.bind(c),500)})};c.prototype.dom={single:"mk-accordion-single",tab:"mk-accordion-tab",pane:"mk-accordion-pane",current:"current",mobileToggle:"mobile-false",mobileBreakPoint:767};c.prototype.bindClicks=function(){this.$single.off("click","."+this.dom.tab);if(!(window.matchMedia("(max-width: "+this.dom.mobileBreakPoint+"px)").matches&&this.$el.hasClass(this.dom.mobileToggle))){this.$single.on("click","."+this.dom.tab,this.handleEvent.bind(this));var b=a("."+this.dom.current,this.$el);if(a("."+this.dom.pane,b).css("display")==="none")this.show(b)}};c.prototype.handleEvent=function(b){b.preventDefault();b.stopPropagation();var c=a(b.delegateTarget);if(!c.hasClass(this.dom.current)){this.show(c)}else{if(this.isExpendable)this.hide(c)}};c.prototype.hide=function(b){b.removeClass(this.dom.current);a("."+this.dom.pane,b).slideUp()};c.prototype.show=function(b){if(!this.isExpendable){var c=this;this.hide(a("."+this.dom.current,c.$el))}b.addClass(this.dom.current);a("."+this.dom.pane,b).slideDown()};a(window).on("load reload",function(){b.each(function(){new c(this)})})})(jQuery);function aa(){if(a.exists(".mk-toggle-title")){if(window.matchMedia("(max-width: 767px)").matches){a(".mk-toggle-title").next().css("display","block")}else{a(".mk-toggle-title").toggle(function(){a(this).addClass("active-toggle");a(this).siblings(".mk-toggle-pane").slideDown("fast")},function(){a(this).removeClass("active-toggle");a(this).siblings(".mk-toggle-pane").slideUp("fast")})}}}function ba(){a(".twitter-share").on("click",function(){var b=a(this).attr("data-url"),c=a(this).attr("data-title");window.open("http://twitter.com/intent/tweet?text="+c+" "+b,"twitterWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false});a(".pinterest-share").on("click",function(){var b=a(this).attr("data-url"),c=a(this).attr("data-title"),d=a(this).attr("data-image");window.open("http://pinterest.com/pin/create/button/?url="+b+"&media="+d+"&description="+c,"twitterWindow","height=320,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false});a(".facebook-share").on("click",function(){var b=a(this).attr("data-url");window.open("https://www.facebook.com/sharer/sharer.php?u="+b,"facebookWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false});a(".googleplus-share").on("click",function(){var b=a(this).attr("data-url");window.open("https://plus.google.com/share?url="+b,"googlePlusWindow","height=380,width=660,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false});a(".linkedin-share").on("click",function(){var b=a(this).attr("data-url");var c=a(this).attr("data-title");window.open("http://www.linkedin.com/shareArticle?mini=true&url="+b+"&title="+c,"linkedinWindow","height=520,width=570,resizable=0,toolbar=0,menubar=0,status=0,location=0,scrollbars=0");return false})}function ca(){a("[data-typer-targets]").each(function(){var b=a(this),c=[b.text()],d=b.attr("data-typer-targets").split(","),e=c.concat(d);b.text("");b.typed({strings:e,typeSpeed:30,backDelay:1200,loop:true,loopCount:false})})}function da(){"use strict";if(a.exists(".mk-call-to-action")){a(".mk-call-to-action").find(".mk-inner-grid").each(function(){var b=a(this);var c=b.children(".mk-button-align.right");var d=b.children(".callout-desc");if(c.length>0&&d.length>0){if(window.matchMedia("(max-width: 770px)").matches){e()}else{f()}}function e(){b.empty().append(d).append(c)}function f(){b.empty().append(c).append(d)}})}}function ea(){if(a.exists(".mk-process-steps.horizontal")){a(".mk-process-steps.horizontal").each(function(){var b=a(this),c=b.find(".step-items"),d=b.find(".step-panes"),e=b.find(".step-panes-responsive");c.find("li").first().addClass("active-step-item");d.css("height",d.find(".mk-step").first().outerHeight()+30);d.find(".mk-step").first().addClass("active-step");c.find("span").hoverIntent(function(){var b=a(this).attr("data-id"),c=d.find('div[id^="'+b+'"]'),e=c.outerHeight()+30;a(this).parent().siblings("li").removeClass("active-step-item").end().addClass("active-step-item");d.css("height",e);d.find(".mk-step").removeClass("active-step");c.addClass("active-step")})})}}function fa(){a(".full-height-true.mk-page-section").each(function(){var b=a(this),c=b.find(".page-section-content").outerHeight();if(a.exists("#mk-header")&&!a("#mk-header").hasClass("header-structure-vertical")&&!a("#mk-header").hasClass("transparent-header")){if(a("#mk-header").hasClass("sticky-trigger-header")){var d=parseInt(a("#mk-header").attr("data-sticky-height"))}else{var d=parseInt(a("#mk-header").attr("data-height"))}}else{var d=0}var e=m-o-d;if(mk_header_structure=="margin"){var e=m-o-d-40}else{var e=m-o-d}if(c>m){b.css("height","auto");b.find(".page-section-content").css({"padding-top":30,"padding-bottom":30})}else{b.animate({height:e});var f=b.find(".page-section-content").outerHeight()/2,g=e/2;b.find(".page-section-content").css("marginTop",g-f)}b.find(".mk-page-section-loader").fadeOut()})}function ga(){if(a.exists(".mk-page-section.intro-true")&&(!h()||i.browser=="IE")){a(".mk-page-section.intro-true").each(function(){var b=a(this),c=b.nextAll("div"),d=a("#mk-header"),e=g.fullHeight(),f=b.data("intro-effect"),h=d.length&&!a("#mk-header").hasClass("header-structure-vertical")?d.data("sticky-height")+50:0;var i={fade:new TimelineLite({paused:true}).set(c,{opacity:0,y:e*.3}).set(c.first(),{paddingTop:h}).to(b,1,{opacity:0,ease:Power2.easeInOut}).set(b,{display:"none"}).to(c,1,{opacity:1,y:0,ease:Power2.easeInOut},"-=.7"),zoom_out:new TimelineLite({paused:true}).set(c,{opacity:0,y:e*.3}).set(c.first(),{paddingTop:h}).to(b,1.5,{opacity:.8,scale:.8,y:-e-100,ease:Strong.easeInOut}).set(b,{display:"none"}).to(c,1.5,{opacity:1,y:0,ease:Strong.easeInOut},"-=1.3"),shuffle:new TimelineLite({paused:true}).to(b,1.5,{y:-e/2,ease:Strong.easeInOut}).to(b.nextAll("div").first(),1.5,{paddingTop:e/2+50,ease:Strong.easeInOut},"-=1.3")};b.sectiontrans({effect:f});a("body").on("page_intro",function(){i[f].play()});a("body").on("page_outro",function(){i[f].reverse()})})}else{a(".mk-page-section.intro-true").each(function(){a(this).attr("data-intro-effect","")})}}function ha(){var b=0;a(".section-expandable-true").each(function(){var c=a(this);var d=c.find(".mk-padding-wrapper");var e=c.find(".bg-layer");d.hide();c.on("click",function(f){if(c.hasClass("active-toggle"))return;c.addClass("active-toggle");d.fadeIn(500);b++;e.removeClass("clip");setTimeout(e.addClass,0,"clip");setTimeout(H,1e3);a(window).trigger("page-sextion-expanded")})});a("body").on("click touchstart",function(c){if(!c.bubbles)return;if(b>0){var d=a(c.target);if(!d.is(".section-expandable-true")&&!d.closest(".section-expandable-true").length&&!a(".fancybox-wrap").length){a(".section-expandable-true").removeClass("active-toggle");a(".section-expandable-true .mk-padding-wrapper").slideUp(400);b--}}})}function ia(){a(".mk-flickr-feeds").each(function(){var b=a(this),c=b.attr("data-key"),d=b.attr("data-userid"),e=b.attr("data-count");jQuery.getJSON("https://api.flickr.com/services/rest/?format=json&method="+"flickr.photos.search&api_key="+c+"&user_id="+d+"&&per_page="+e+"&jsoncallback=?",function(a){jQuery.each(a.photos.photo,function(a,c){var d="http://farm"+c.farm+".static.flickr.com/"+c.server+"/"+c.id+"_"+c.secret;var f=d+"_q.jpg";var g=d+".jpg";var h="'+c.title+'
    ;';var j=af){g=false}});if(!g){b.find(".section").each(function(){var b=a(this);b.addClass("active").css({"padding-bottom":"50px"})})}if(g){b.fullpage({verticalCentered:false,resize:true,slidesColor:["#ccc","#fff"],anchors:c,scrollingSpeed:600,easing:"easeInQuart",menu:false,navigation:d,navigationPosition:"right",navigationTooltips:false,slidesNavigation:true,slidesNavPosition:"bottom",loopBottom:false,loopTop:false,loopHorizontal:true,autoScrolling:true,scrollOverflow:true,css3:true,paddingTop:0,paddingBottom:0,normalScrollElements:"",normalScrollElementTouchThreshold:5,keyboardScrolling:true,touchSensitivity:15,continuousVertical:false,animateAnchor:true,onLeave:function(c,d,e){if(!a("#mk-header").hasClass("transparent-header-sticky")){a("#mk-header.transparent-header").removeClass("light-header-skin dark-header-skin").addClass(b.find(".one-pager-slide").eq(d-1).attr("data-header-skin")+"-header-skin");a("#fullPage-nav").removeClass("light-skin dark-skin").addClass(b.find(".one-pager-slide").eq(d-1).attr("data-header-skin")+"-skin")}},afterLoad:function(a,b){},afterRender:function(){if(!a("#mk-header").hasClass("transparent-header-sticky")){var c=b.find(".one-pager-slide"),d=c.index(".active"),e=b.attr("data-pagination");setTimeout(function(){a("#mk-header.transparent-header").removeClass("light-header-skin dark-header-skin").addClass(b.find(".one-pager-slide").eq(0).attr("data-header-skin")+"-header-skin");a("#fullPage-nav").removeClass("light-skin dark-skin").addClass(" pagination-"+e).attr("data-skin",c.eq(d).attr("data-header-skin"))},300)}},afterResize:function(){},afterSlideLoad:function(a,b,c,d){},onSlideLeave:function(a,b,c,d){}})}})}function na(){a(".mk-edge-one-pager").each(function(){var b=a(this),c=0;if(a.exists("#mk-header.sticky-header")&&!a("#mk-header").hasClass("transparent-header")){var c=parseInt(a("#mk-header.sticky-header").attr("data-sticky-height"))}var d=a(window).height()-c-o;b.find(".one-pager-slide").each(function(){var b=a(this),c=b.find(".edge-slide-content");if(b.hasClass("left_center")||b.hasClass("center_center")||b.hasClass("right_center")){var e=c.outerHeight()/2,f=d/2,g=f-e,g=g<50?50:g;c.css("marginTop",g)}if(b.hasClass("left_bottom")||b.hasClass("center_bottom")||b.hasClass("right_bottom")){var g=d-c.outerHeight()-90,g=g<50?50:g;c.css("marginTop",g)}})})}var oa=function(b){var c=0,d=0,e=new Array,f,g=0;a(b).each(function(){f=a(this);a(f).height("auto");g=f.position().top;if(d!=g){for(var b=0;b700){b.removeClass("off").addClass("on");c.removeClass("go-right").addClass("go-left")}else{b.removeClass("on").addClass("off");c.removeClass("go-left").addClass("go-right")}};s.add(d)}function c(){a("body").on("click",".mk-love-this",function(){var b=a(this),c=b.attr("id");if(b.hasClass("item-loved")){return false}if(b.hasClass("item-inactive")){return false}var d={action:"mk_love_post",post_id:c};a.post(ajaxurl,d,function(a){b.find("span").html(a);b.addClass("item-loved")});b.addClass("item-inactive");return false})}c();function d(){var a=false;(function(b){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm(os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s)|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp(i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac(|\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt(|\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg(g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v)|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v)|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-|)|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0,4)))a=true; })(navigator.userAgent||navigator.vendor||window.opera);return a}function e(){var b=d()?"touchstart":"click";a(".mk-margin-header-burger").on(b,function(){var b=a(this),c=a("#mk-main-navigation");if(!b.hasClass("active-burger")){b.addClass("active-burger");c.addClass("show-menu")}else{b.removeClass("active-burger");c.removeClass("show-menu")}})}function f(){a(".widget_product_categories ul > .cat-item").each(function(){var b=a(this),c=b.find("ul");if(b.hasClass("cat-parent")){b.hoverIntent({over:function(){c.slideDown(500)},out:function(){c.slideUp(500)},timeout:1e3})}})}function g(){a(".fancy_link-button").each(function(){var b=a(this),c=b.find(".line");b.hoverIntent({over:function(){c.css({width:"100%",right:"auto",left:"0"})},out:function(){c.css({width:"0",right:"0",left:"auto"})},timeout:100})})}function h(){a(".theatre-slider-container.autoplay-true").each(function(){var b=a(this),c=b.data("source"),d;if(c=="self_hosted"){d=b.find("video")[0]}if(c=="youtube"){var e=b.find("iframe")[0];d=new YT.Player(e)}if(c=="vimeo"){var f=b.find("iframe")[0];d=$f(f)}b.on("inview",function(a,b){if(b==true){if(c=="self_hosted"){d.play()}if(c=="youtube"){d.playVideo()}if(c=="vimeo"){d.api("play")}}else{if(c=="self_hosted"){d.pause()}if(c=="youtube"){d.pauseVideo()}if(c=="vimeo"){d.api("pause")}}})})}function i(){var b=a(".laptop-theatre-slider");var c=a(".computer-theatre-slider");if(a.exists(".laptop-theatre-slider")){b.each(function(){var b=a(this),c=a(window),d=c.outerWidth(),e=c.outerHeight(),f=b.outerWidth(),g=b.outerHeight(),h=32,i=110,j=47,k=110;var l=b.find(".player-container");if(d>f){l.css({"border-left-width":f*k/920,"border-right-width":f*i/920,"border-top-width":g*h/536,"border-bottom-width":g*j/536})}})}if(a.exists(".computer-theatre-slider")){c.each(function(){var b=a(this),c=a(window),d=c.outerWidth(),e=c.outerHeight(),f=b.outerWidth(),g=b.outerHeight(),h=37,i=35,j=190,k=38;var l=b.find(".player-container");if(d>f){l.css({"border-left-width":f*k/920,"border-right-width":f*i/920,"border-top-width":g*h/705,"border-bottom-width":g*j/705})}})}}function j(){var b=a(".mk-mobile-slideshow.portrait-style");var c=a(".mk-mobile-slideshow.landscape-style");var d=a(".mk-tablet-slideshow");if(a.exists(".mk-mobile-slideshow.portrait-style")){b.each(function(){var b=a(this),c=a(window),d=c.outerWidth(),e=c.outerHeight(),f=b.outerWidth(),g=b.outerHeight(),h=106,i=25,j=100,k=30;var l=b.find(".slideshow-container");l.css({"padding-left":f*k/357,"padding-right":f*i/357,"padding-top":g*h/741,"padding-bottom":g*j/735})})}if(a.exists(".mk-mobile-slideshow.landscape-style")){c.each(function(){var b=a(this),c=a(window),d=c.outerWidth(),e=c.outerHeight(),f=b.outerWidth(),g=b.outerHeight(),h=40,i=125,j=40,k=135;var l=b.find(".slideshow-container");l.css({"padding-left":f*k/902,"padding-right":f*i/902,"padding-top":g*h/436,"padding-bottom":g*j/436})})}if(a.exists(".mk-tablet-slideshow")){d.each(function(){var b=a(this),c=a(window),d=c.outerWidth(),e=c.outerHeight(),f=b.outerWidth(),g=b.outerHeight(),h=78,i=36,j=83,k=30;var l=b.find(".slideshow-container");l.css({"padding-left":f*k/501,"padding-right":f*i/501,"padding-top":g*h/739,"padding-bottom":g*j/739})})}}function l(){a(".mk-image-box.autoplay-true").each(function(){var b=a(this),c=b.data("source"),d;if(c=="self_hosted"){d=b.find("video")[0]}if(c=="youtube"){var e=b.find("iframe")[0];d=new YT.Player(e)}if(c=="vimeo"){var f=b.find("iframe")[0];d=$f(f)}b.on("inview",function(a,b){if(b==true){if(c=="self_hosted"){d.play()}if(c=="youtube"){d.playVideo();d.mute()}if(c=="vimeo"){d.api("play");d.api("setVolume",0)}}else{if(c=="self_hosted"){d.pause()}if(c=="youtube"){d.pauseVideo()}if(c=="vimeo"){d.api("pause")}}})})}function m(){if(a.exists(".products")&&!a(".products").hasClass("related")){a(".products.isotope-enabled").each(function(){if(!a(this).parents(".mk-woocommerce-carousel").length){var b=a(this),c=".products .product";b.isotope({itemSelector:c,masonry:{columnWidth:1}})}})}}function n(){if(a.exists(".mk-product-categories")){a(".mk-product-categories-list").each(function(){var b=a(this),c=".mk-product-categories-list .product-item";b.isotope({itemSelector:c,masonry:{columnWidth:1}})})}}function o(){if(a.exists(".vertical-header")){a(".mk-vertical-menu .menu-item").hoverIntent({over:function(){if(a(this).is(".menu-item-has-children")){a(this).find("> .sub-menu").slideToggle()}},out:function(){if(a(this).is(".menu-item-has-children")){a(this).find("> .sub-menu").slideToggle()}},timeout:300})}}function q(){a(".mk-header-wpml-ls").hoverIntent({over:function(){a(".language-selector-box").fadeIn(200)},out:function(){a(".language-selector-box").fadeOut(200)},timeout:500})}function r(){a("header").on("mouseenter",".mk-shopping-cart",function(){a(".mk-shopping-box").fadeIn(200).css({"z-index":100})});a("header").on("mouseleave",".mk-shopping-cart",function(){a(".mk-shopping-box").delay(500).fadeOut(200)})}function t(){var b=a("body");b.on("click",".add_to_cart_button",function(){var b=a(this).parents(".product:eq(0)").addClass("adding-to-cart").removeClass("added-to-cart")});b.bind("added_to_cart",function(){a(".adding-to-cart").removeClass("adding-to-cart").addClass("added-to-cart");r()})}t();function u(){if(a.exists(".search-ajax-input")){var b=a("#mk-ajax-search-input").siblings('input[name="security"]').val(),c=a("#mk-ajax-search-input").siblings('input[name="_wp_http_referer"]').val();a(".search-ajax-input").autocomplete({delay:50,minLength:2,messages:{noResults:"",results:function(){}},appendTo:a(".header-searchform-input"),source:function(d,e){a.getJSON(ajaxurl+"?callback=?&action=mk_ajax_search&security="+b+"&_wp_http_referer="+c,d,e)},select:function(a,b){window.location.href=b.item.link}}).data("ui-autocomplete")._renderItem=function(b,c){return a("
  • ").append(""+c.image+""+c.label+""+c.date+"").appendTo(b)}}}u();function x(){if(a.tools.validator!=undefined){a.tools.validator.addEffect("contact_form",function(b){a.each(b,function(a,b){var c=b.input;c.addClass("mk-invalid")})},function(a){a.removeClass("mk-invalid")});a(".captcha-change-image").on("click",function(a){a.preventDefault();b()});a(".captcha-form").each(function(){a(this).on("focus",function(){a(this).attr("placeholder",mk_captcha_placeholder).removeClass("contact-captcha-invalid contact-captcha-valid")})});var b=function(){a(".captcha-image").attr("src",mk_captcha_url+"?"+Math.random())};var c;var d=function(d,e){a.get(mk_captcha_check_url,{captcha:e}).done(function(a){if(a!="ok"){b();d.find(".captcha-form").val("").addClass("contact-captcha-invalid").attr("placeholder",mk_captcha_invalid_txt)}else{c();b();d.find(".captcha-form").val("").addClass("contact-captcha-valid").attr("placeholder",mk_captcha_correct_txt)}})};a(".mk-contact-form").validator({effect:"contact_form"}).submit(function(b){var e=a(this);if(!b.isDefaultPrevented()){var f={action:"mk_contact_form",security:e.find('input[name="security"]').val(),_wp_http_referer:e.find('input[name="_wp_http_referer"]').val(),p_id:e.find('input[name="p_id"]').val(),sh_id:e.find('input[name="sh_id"]').val(),name:e.find('input[name="contact_name"]').val(),phone:e.find('input[name="contact_phone"]').val(),email:e.find('input[name="contact_email"]').val(),content:e.find('textarea[name="contact_content"]').val()};c=function(){w.loader(e);a.post(ajaxurl,f,function(a){e.find(".mk-contact-loading").fadeOut("slow");e.find(".text-input").val("");e.find("textarea").val("");w.success(e)})};var g=e.find('input[name="captcha"]').val();if(e.find(".captcha-form").length){d(e,g)}else{c()}b.preventDefault()}})}}x();a(this).find(".mk-form-row input, .comment-form-row input, .mk-login-form input").each(function(){a(this).focusin(function(){a(this).siblings("i").addClass("input-focused")});a(this).focusout(function(){a(this).siblings("i").removeClass("input-focused")})});function B(){a("form.mk-login-form").each(function(){var b=a(this);b.on("submit",function(c){a("p.mk-login-status",b).show().text(ajax_login_object.loadingmessage);a.ajax({type:"POST",dataType:"json",url:ajax_login_object.ajaxurl,data:{action:"ajaxlogin",username:a("#username",b).val(),password:a("#password",b).val(),security:a("#security",b).val()},success:function(c){a("p.mk-login-status",b).text(c.message);if(c.loggedin===true){document.location.href=ajax_login_object.redirecturl}}});c.preventDefault()})})}B();var C=d()?"touchstart":"click";jQuery(".mk-quick-contact-link").on(C,function(){var a=jQuery(this),b=jQuery(".mk-quick-contact-overlay"),c=b.find(".mk-quick-contact-inset");b.addClass("mk-quick-contact-visible");disableScroll();return false});jQuery(document).on(C,function(){a(".mk-quick-contact-overlay").removeClass("mk-quick-contact-visible");enableScroll()});var F=a(".mk-contact-form");F.find("a").on(C,S);F.find("input").on(C,S);F.find("textarea").on(C,S);F.find("button").on(C,S);function S(a){a.stopPropagation()}a(".box-close-btn").on(C,function(){a(this).parent().fadeOut(300);return false});function X(){var b=ken.modules.header.calcHeight();a(".mk-smooth, .blog-comments").on("click",function(c){TweenLite.to(window,1.2,{scrollTo:{y:a(a(this).attr("href")).offset().top-(b+2)},ease:Expo.easeInOut});c.preventDefault()})}function ia(){a(".mk-toolbar-responsive-icon").on("click",function(b){var c=a(this),d=c.parents(".mk-responsive-header-toolbar").prev(".mk-header-toolbar");if(!c.hasClass("active-header-toolbar")){c.addClass("active-header-toolbar");d.show()}else{c.removeClass("active-header-toolbar");d.hide()}b.preventDefault()})}function la(){var b,c=a(".main-navigation-ul, .mk-responsive-nav"),d=c.find(".menu-item a"),e=ken.modules.header.calcHeight(),f;d.each(function(){var b=a(this).attr("href");if(typeof b!=="undefined"&&b!==false){f=b.split("#")[0];if(typeof b.split("#")[1]!=="undefined"&&b.split("#")[1].length){a(this).addClass("one-page-nav-item")}}else{f=""}if(f===window.location.href.split("#")[0]&&typeof a(this).attr("href").split("#")[1]!=="undefined"&&f!==""){a(this).attr("href","#"+a(this).attr("href").split("#")[1]);a(this).parent().removeClass("current-menu-item")}});var g=a(".one-page-nav-item");var h=g.map(function(){var b=a(this).attr("href");if(/^#\w/.test(b)&&a(b).length){return a(b)}});c.on("click",".one-page-nav-item",function(b){var c=a(this).attr("href");if(typeof a(c).offset()!=="undefined"){var d=a(c).offset().top}else{var d=0}if(a(window).width()
  • ',image:'',iframe:'",error:'

    The requested content cannot be loaded.
    Please try again later.

    ',closeBtn:'',next:'',prev:''},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:c.noop,beforeLoad:c.noop,afterLoad:c.noop,beforeShow:c.noop,afterShow:c.noop,beforeChange:c.noop,beforeClose:c.noop,afterClose:c.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(a,b){if(a&&(c.isPlainObject(b)||(b={}),!1!==h.close(!0)))return c.isArray(a)||(a=l(a)?c(a).get():[a]),c.each(a,function(e,f){var g={},i,j,k,n,o;"object"===c.type(f)&&(f.nodeType&&(f=c(f)),l(f)?(g={href:f.data("fancybox-href")||f.attr("href"),title:c("
    ").text(f.data("fancybox-title")||f.attr("title")).html(),isDom:!0,element:f},c.metadata&&c.extend(!0,g,f.metadata())):g=f);i=b.href||g.href||(m(f)?f:null);j=b.title!==d?b.title:g.title||"";n=(k=b.content||g.content)?"html":b.type||g.type;!n&&g.isDom&&(n=f.data("fancybox-type"),n||(n=(n=f.prop("class").match(/fancybox\.(\w+)/))?n[1]:null));m(i)&&(n||(h.isImage(i)?n="image":h.isSWF(i)?n="swf":"#"===i.charAt(0)?n="inline":m(f)&&(n="html",k=f)),"ajax"===n&&(o=i.split(/\s+/,2),i=o.shift(),o=o.shift()));k||("inline"===n?i?k=c(m(i)?i.replace(/.*(?=#[^\s]+$)/,""):i):g.isDom&&(k=f):"html"===n?k=i:n||i||!g.isDom||(n="inline",k=f));c.extend(g,{href:i,type:n,content:k,title:j,selector:o});a[e]=g}),h.opts=c.extend(!0,{},h.defaults,b),b.keys!==d&&(h.opts.keys=b.keys?c.extend({},h.defaults.keys,b.keys):!1),h.group=a,h._start(h.opts.index)},cancel:function(){var a=h.coming;a&&!1===h.trigger("onCancel")||(h.hideLoading(),a&&(h.ajaxLoad&&h.ajaxLoad.abort(),h.ajaxLoad=null,h.imgPreload&&(h.imgPreload.onload=h.imgPreload.onerror=null),a.wrap&&a.wrap.stop(!0,!0).trigger("onReset").remove(),h.coming=null,h.current||h._afterZoomOut(a)))},close:function(a){h.cancel();!1!==h.trigger("beforeClose")&&(h.unbindEvents(),h.isActive&&(h.isOpen&&!0!==a?(h.isOpen=h.isOpened=!1,h.isClosing=!0,c(".fancybox-item, .fancybox-nav").remove(),h.wrap.stop(!0,!0).removeClass("fancybox-opened"),h.transitions[h.current.closeMethod]()):(c(".fancybox-wrap").stop(!0).trigger("onReset").remove(),h._afterZoomOut())))},play:function(a){var b=function(){clearTimeout(h.player.timer)},c=function(){b();h.current&&h.player.isActive&&(h.player.timer=setTimeout(h.next,h.current.playSpeed))},d=function(){b();g.unbind(".player");h.player.isActive=!1;h.trigger("onPlayEnd")};!0===a||!h.player.isActive&&!1!==a?h.current&&(h.current.loop||h.current.index=e.index?"next":"prev"],h.router=c||"jumpto",e.loop&&(0>a&&(a=e.group.length+a%e.group.length),a%=e.group.length),e.group[a]!==d&&(h.cancel(),h._start(a)))},reposition:function(a,b){var d=h.current,e=d?d.wrap:null,f;e&&(f=h._getPosition(b),a&&"scroll"===a.type?(delete f.position,e.stop(!0,!0).animate(f,200)):(e.css(f),d.pos=c.extend({},d.dim,f)))},update:function(a){var b=a&&a.originalEvent&&a.originalEvent.type,c=!b||"orientationchange"===b;c&&(clearTimeout(j),j=null);h.isOpen&&!j&&(j=setTimeout(function(){var d=h.current;d&&!h.isClosing&&(h.wrap.removeClass("fancybox-tmp"),(c||"load"===b||"resize"===b&&d.autoResize)&&h._setDimension(),"scroll"===b&&d.canShrink||h.reposition(a),h.trigger("onUpdate"),j=null)},c&&!k?0:300))},toggle:function(a){h.isOpen&&(h.current.fitToView="boolean"===c.type(a)?a:!h.current.fitToView,k&&(h.wrap.removeAttr("style").addClass("fancybox-tmp"),h.trigger("onUpdate")),h.update())},hideLoading:function(){g.unbind(".loading");c("#fancybox-loading").remove()},showLoading:function(){var a,b;h.hideLoading();a=c('
    ').click(h.cancel).appendTo("body");g.bind("keydown.loading",function(a){27===(a.which||a.keyCode)&&(a.preventDefault(),h.cancel())});h.defaults.fixed||(b=h.getViewport(),a.css({position:"absolute",top:.5*b.h+b.y,left:.5*b.w+b.x}));h.trigger("onLoading")},getViewport:function(){var b=h.current&&h.current.locked||!1,c={x:f.scrollLeft(),y:f.scrollTop()};b&&b.length?(c.w=b[0].clientWidth,c.h=b[0].clientHeight):(c.w=k&&a.innerWidth?a.innerWidth:f.width(),c.h=k&&a.innerHeight?a.innerHeight:f.height());return c},unbindEvents:function(){h.wrap&&l(h.wrap)&&h.wrap.unbind(".fb");g.unbind(".fb");f.unbind(".fb")},bindEvents:function(){var a=h.current,b;a&&(f.bind("orientationchange.fb"+(k?"":" resize.fb")+(a.autoCenter&&!a.locked?" scroll.fb":""),h.update),(b=a.keys)&&g.bind("keydown.fb",function(e){var f=e.which||e.keyCode,g=e.target||e.srcElement;if(27===f&&h.coming)return!1;e.ctrlKey||e.altKey||e.shiftKey||e.metaKey||g&&(g.type||c(g).is("[contenteditable]"))||c.each(b,function(b,g){if(1g[0].clientWidth||g[0].clientHeight&&g[0].scrollHeight>g[0].clientHeight),g=c(g).parent();0!==d&&!i&&1f||0>e)&&h.next(0>f?"up":"right"),b.preventDefault())}))},trigger:function(a,b){var d,e=b||h.coming||h.current;if(e){c.isFunction(e[a])&&(d=e[a].apply(e,Array.prototype.slice.call(arguments,1)));if(!1===d)return!1;e.helpers&&c.each(e.helpers,function(b,d){if(d&&h.helpers[b]&&c.isFunction(h.helpers[b][a]))h.helpers[b][a](c.extend(!0,{},h.helpers[b].defaults,d),e)})}g.trigger(a)},isImage:function(a){return m(a)&&a.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(a){return m(a)&&a.match(/\.(swf)((\?|#).*)?$/i)},_start:function(a){var b={},d,e;a=o(a);d=h.group[a]||null;if(!d)return!1;b=c.extend(!0,{},h.opts,d);d=b.margin;e=b.padding;"number"===c.type(d)&&(b.margin=[d,d,d,d]);"number"===c.type(e)&&(b.padding=[e,e,e,e]);b.modal&&c.extend(!0,b,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}});b.autoSize&&(b.autoWidth=b.autoHeight=!0);"auto"===b.width&&(b.autoWidth=!0);"auto"===b.height&&(b.autoHeight=!0);b.group=h.group;b.index=a;h.coming=b;if(!1===h.trigger("beforeLoad"))h.coming=null;else{e=b.type;d=b.href;if(!e)return h.coming=null,h.current&&h.router&&"jumpto"!==h.router?(h.current.index=a,h[h.router](h.direction)):!1;h.isActive=!0;if("image"===e||"swf"===e)b.autoHeight=b.autoWidth=!1,b.scrolling="visible";"image"===e&&(b.aspectRatio=!0);"iframe"===e&&k&&(b.scrolling="scroll");b.wrap=c(b.tpl.wrap).addClass("fancybox-"+(k?"mobile":"desktop")+" fancybox-type-"+e+" fancybox-tmp "+b.wrapCSS).appendTo(b.parent||"body");c.extend(b,{skin:c(".fancybox-skin",b.wrap),outer:c(".fancybox-outer",b.wrap),inner:c(".fancybox-inner",b.wrap)});c.each(["Top","Right","Bottom","Left"],function(a,c){b.skin.css("padding"+c,p(b.padding[a]))});h.trigger("onReady");if("inline"===e||"html"===e){if(!b.content||!b.content.length)return h._error("content")}else if(!d)return h._error("href");"image"===e?h._loadImage():"ajax"===e?h._loadAjax():"iframe"===e?h._loadIframe():h._afterLoad()}},_error:function(a){c.extend(h.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:a,content:h.coming.tpl.error});h._afterLoad()},_loadImage:function(){var a=h.imgPreload=new Image;a.onload=function(){this.onload=this.onerror=null;h.coming.width=this.width/h.opts.pixelRatio;h.coming.height=this.height/h.opts.pixelRatio;h._afterLoad()};a.onerror=function(){this.onload=this.onerror=null;h._error("image")};a.src=h.coming.href;!0!==a.complete&&h.showLoading()},_loadAjax:function(){var a=h.coming;h.showLoading();h.ajaxLoad=c.ajax(c.extend({},a.ajax,{url:a.href,error:function(a,b){h.coming&&"abort"!==b?h._error("ajax",a):h.hideLoading()},success:function(b,c){"success"===c&&(a.content=b,h._afterLoad())}}))},_loadIframe:function(){var a=h.coming,b=c(a.tpl.iframe.replace(/\{rnd\}/g,(new Date).getTime())).attr("scrolling",k?"auto":a.iframe.scrolling).attr("src",a.href);c(a.wrap).bind("onReset",function(){try{c(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(a){}});a.iframe.preload&&(h.showLoading(),b.one("load",function(){c(this).data("ready",1);k||c(this).bind("load.fb",h.update);c(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();h._afterLoad()}));a.content=b.appendTo(a.inner);a.iframe.preload||h._afterLoad()},_preloadImages:function(){var a=h.group,b=h.current,c=a.length,d=b.preload?Math.min(b.preload,c-1):0,e,f;for(f=1;f<=d;f+=1)e=a[(b.index+f)%c],"image"===e.type&&e.href&&((new Image).src=e.href)},_afterLoad:function(){var a=h.coming,b=h.current,d,e,f,g,i;h.hideLoading();if(a&&!1!==h.isActive)if(!1===h.trigger("afterLoad",a,b))a.wrap.stop(!0).trigger("onReset").remove(),h.coming=null;else{b&&(h.trigger("beforeChange",b),b.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove());h.unbindEvents();d=a.content;e=a.type;f=a.scrolling;c.extend(h,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:b});g=a.href;switch(e){case"inline":case"ajax":case"html":a.selector?d=c("
    ").html(d).find(a.selector):l(d)&&(d.data("fancybox-placeholder")||d.data("fancybox-placeholder",c('
    ').insertAfter(d).hide()),d=d.show().detach(),a.wrap.bind("onReset",function(){c(this).find(d).length&&d.hide().replaceAll(d.data("fancybox-placeholder")).data("fancybox-placeholder",!1)}));break;case"image":d=a.tpl.image.replace(/\{href\}/g,g);break;case"swf":d='',i="",c.each(a.swf,function(a,b){d+='';i+=" "+a+'="'+b+'"'}),d+='"}l(d)&&d.parent().is(a.inner)||a.inner.append(d);h.trigger("beforeShow");a.inner.css("overflow","yes"===f?"scroll":"no"===f?"hidden":f);h._setDimension();h.reposition();h.isOpen=!1;h.coming=null;h.bindEvents();if(!h.isOpened)c(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove();else if(b.prevMethod)h.transitions[b.prevMethod]();h.transitions[h.isOpened?a.nextMethod:a.openMethod]();h._preloadImages()}},_setDimension:function(){var a=h.getViewport(),b=0,d=!1,e=!1,d=h.wrap,f=h.skin,g=h.inner,i=h.current,e=i.width,j=i.height,k=i.minWidth,l=i.minHeight,m=i.maxWidth,q=i.maxHeight,r=i.scrolling,s=i.scrollOutside?i.scrollbarWidth:0,t=i.margin,u=o(t[1]+t[3]),v=o(t[0]+t[2]),w,x,y,z,A,B,C,D,E;d.add(f).add(g).width("auto").height("auto").removeClass("fancybox-tmp");t=o(f.outerWidth(!0)-f.width());w=o(f.outerHeight(!0)-f.height());x=u+t;y=v+w;z=n(e)?(a.w-x)*o(e)/100:e;A=n(j)?(a.h-y)*o(j)/100:j;if("iframe"===i.type){if(E=i.content,i.autoHeight&&1===E.data("ready"))try{E[0].contentWindow.document.location&&(g.width(z).height(9999),B=E.contents().find("body"),s&&B.css("overflow-x","hidden"),A=B.outerHeight(!0))}catch(a){}}else if(i.autoWidth||i.autoHeight)g.addClass("fancybox-tmp"),i.autoWidth||g.width(z),i.autoHeight||g.height(A),i.autoWidth&&(z=g.width()),i.autoHeight&&(A=g.height()),g.removeClass("fancybox-tmp");e=o(z);j=o(A);D=z/A;k=o(n(k)?o(k,"w")-x:k);m=o(n(m)?o(m,"w")-x:m);l=o(n(l)?o(l,"h")-y:l);q=o(n(q)?o(q,"h")-y:q);B=m;C=q;i.fitToView&&(m=Math.min(a.w-x,m),q=Math.min(a.h-y,q));x=a.w-u;v=a.h-v;i.aspectRatio?(e>m&&(e=m,j=o(e/D)),j>q&&(j=q,e=o(j*D)),ex||u>v)&&e>k&&j>l&&!(19m&&(e=m,j=o(e/D)),g.width(e).height(j),d.width(e+t),a=d.width(),u=d.height();else e=Math.max(k,Math.min(e,e-(a-x))),j=Math.max(l,Math.min(j,j-(u-v)));s&&"auto"===r&&jx||u>v)&&e>k&&j>l;e=i.aspectRatio?el&&j
    ').appendTo(b&&b.lenth?b:"body");this.fixed=!1;a.fixed&&h.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(a){var b=this;a=c.extend({},this.defaults,a);this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(a);this.fixed||(f.bind("resize.overlay",c.proxy(this.update,this)),this.update());a.closeClick&&this.overlay.bind("click.overlay",function(a){if(c(a.target).hasClass("fancybox-overlay"))return h.isActive?h.close():b.close(),!1});this.overlay.css(a.css).show()},close:function(){f.unbind("resize.overlay");this.el.hasClass("fancybox-lock")&&(c(".fancybox-margin").removeClass("fancybox-margin"),this.el.removeClass("fancybox-lock"),f.scrollTop(this.scrollV).scrollLeft(this.scrollH));c(".fancybox-overlay").remove().hide();c.extend(this,{overlay:null,fixed:!1})},update:function(){var a="100%",c;this.overlay.width(a).height("100%");i?(c=Math.max(b.documentElement.offsetWidth,b.body.offsetWidth),g.width()>c&&(a=g.width())):g.width()>f.width()&&(a=g.width());this.overlay.width(a).height(g.height())},onReady:function(a,b){var d=this.overlay;c(".fancybox-overlay").stop(!0,!0);d||this.create(a);a.locked&&this.fixed&&b.fixed&&(b.locked=this.overlay.append(b.wrap),b.fixed=!1);!0===a.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(a,b){b.locked&&!this.el.hasClass("fancybox-lock")&&(!1!==this.fixPosition&&c("*").filter(function(){return"fixed"===c(this).css("position")&&!c(this).hasClass("fancybox-overlay")&&!c(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin"),this.scrollV=f.scrollTop(),this.scrollH=f.scrollLeft(),this.el.addClass("fancybox-lock"),f.scrollTop(this.scrollV).scrollLeft(this.scrollH));this.open(a)},onUpdate:function(){this.fixed||this.update(); },afterClose:function(a){this.overlay&&!h.coming&&this.overlay.fadeOut(a.speedOut,c.proxy(this.close,this))}};h.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(a){var b=h.current,d=b.title,e=a.type;c.isFunction(d)&&(d=d.call(b.element,b));if(m(d)&&""!==c.trim(d)){b=c('
    '+d+"
    ");switch(e){case"inside":e=h.skin;break;case"outside":e=h.wrap;break;case"over":e=h.inner;break;default:e=h.skin,b.appendTo("body"),i&&b.width(b.width()),b.wrapInner(''),h.current.margin[2]+=Math.abs(o(b.css("margin-bottom")))}b["top"===a.position?"prependTo":"appendTo"](e)}}};c.fn.fancybox=function(a){var b,d=c(this),e=this.selector||"",f=function(f){var g=c(this).blur(),i=b,j,k;f.ctrlKey||f.altKey||f.shiftKey||f.metaKey||g.is(".fancybox-wrap")||(j=a.groupAttr||"data-fancybox-group",k=g.attr(j),k||(j="rel",k=g.get(0)[j]),k&&""!==k&&"nofollow"!==k&&(g=e.length?c(e):d,g=g.filter("["+j+'="'+k+'"]'),i=g.index(this)),a.index=i,!1!==h.open(g,a)&&f.preventDefault())};a=a||{};b=a.index||0;e&&!1!==a.live?g.undelegate(e,"click.fb-start").delegate(e+":not('.fancybox-item, .fancybox-nav')","click.fb-start",f):d.unbind("click.fb-start").bind("click.fb-start",f);this.filter("[data-fancybox-start=1]").trigger("click");return this};g.ready(function(){var b,f;c.scrollbarWidth===d&&(c.scrollbarWidth=function(){var a=c('
    ').appendTo("body"),b=a.children(),b=b.innerWidth()-b.height(99).innerWidth();a.remove();return b});c.support.fixedPosition===d&&(c.support.fixedPosition=function(){var a=c('
    ').appendTo("body"),b=20===a[0].offsetTop||15===a[0].offsetTop;a.remove();return b}());c.extend(h.defaults,{scrollbarWidth:c.scrollbarWidth(),fixed:c.support.fixedPosition,parent:c("body")});b=c(a).width();e.addClass("fancybox-lock-test");f=c(a).width();e.removeClass("fancybox-lock-test")})})(window,document,jQuery);(function(a){"use strict";var b=a.fancybox,c=function(b,c,d){d=d||"";if(a.type(d)==="object"){d=a.param(d,true)}a.each(c,function(a,c){b=b.replace("$"+a,c||"")});if(d.length){b+=(b.indexOf("?")>0?"&":"?")+d}return b};b.helpers.media={defaults:{youtube:{matcher:/(youtube\.com|youtu\.be|youtube-nocookie\.com)\/(watch\?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*)).*/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"opaque",enablejsapi:1},type:"iframe",url:"//www.youtube.com/embed/$3"},vimeo:{matcher:/(?:vimeo(?:pro)?.com)\/(?:[^\d]+)?(\d+)(?:.*)/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},type:"iframe",url:"//player.vimeo.com/video/$1"},metacafe:{matcher:/metacafe.com\/(?:watch|fplayer)\/([\w\-]{1,10})/,params:{autoPlay:"yes"},type:"swf",url:function(b,c,d){d.swf.flashVars="playerVars="+a.param(c,true);return"//www.metacafe.com/fplayer/"+b[1]+"/.swf"}},dailymotion:{matcher:/dailymotion.com\/video\/(.*)\/?(.*)/,params:{additionalInfos:0,autoStart:1},type:"swf",url:"//www.dailymotion.com/swf/video/$1"},twitvid:{matcher:/twitvid\.com\/([a-zA-Z0-9_\-\?\=]+)/i,params:{autoplay:0},type:"iframe",url:"//www.twitvid.com/embed.php?guid=$1"},twitpic:{matcher:/twitpic\.com\/(?!(?:place|photos|events)\/)([a-zA-Z0-9\?\=\-]+)/i,type:"image",url:"//twitpic.com/show/full/$1/"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},google_maps:{matcher:/maps\.google\.([a-z]{2,3}(\.[a-z]{2})?)\/(\?ll=|maps\?)(.*)/i,type:"iframe",url:function(a){return"//maps.google."+a[1]+"/"+a[3]+""+a[4]+"&output="+(a[4].indexOf("layer=c")>0?"svembed":"embed")}}},beforeLoad:function(b,d){var e=d.href||"",f=false,g,h,i,j;for(g in b){if(b.hasOwnProperty(g)){h=b[g];i=e.match(h.matcher);if(i){f=h.type;j=a.extend(true,{},h.params,d[g]||(a.isPlainObject(b[g])?b[g].params:null));e=a.type(h.url)==="function"?h.url.call(this,i,j,d):c(h.url,i,j);break}}}if(f){d.href=e;d.type=f;d.autoHeight=false}}}})(jQuery)})(jQuery);console.log("ready for rock"); (function ($){ "use strict"; })(jQuery); var addComment={moveForm:function(e,t,n,o){var r,i,d,m=this,l=m.I(e),a=m.I(n),c=m.I("cancel-comment-reply-link"),s=m.I("comment_parent"),e=m.I("comment_post_ID"),p=a.getElementsByTagName("form")[0];if(l&&a&&c&&s&&p){m.respondId=n,o=o||!1,m.I("wp-temp-form-div")||((m=document.createElement("div")).id="wp-temp-form-div",m.style.display="none",a.parentNode.insertBefore(m,a)),l.parentNode.insertBefore(a,l.nextSibling),e&&o&&(e.value=o),s.value=t,c.style.display="",c.onclick=function(){var e=addComment,t=e.I("wp-temp-form-div"),n=e.I(e.respondId);if(t&&n)return e.I("comment_parent").value="0",t.parentNode.insertBefore(n,t),t.parentNode.removeChild(t),this.style.display="none",this.onclick=null,!1};try{for(var f=0;f").get(0).files,n.formdata=void 0!==window.FormData;var i=!!e.fn.prop;e.fn.attr2=function(){if(!i)return this.attr.apply(this,arguments);var e=this.prop.apply(this,arguments);return e&&e.jquery||"string"==typeof e?e:this.attr.apply(this,arguments)},e.fn.ajaxSubmit=function(t){function r(r){var a,n,i=e.param(r,t.traditional).split("&"),o=i.length,s=[];for(a=0;o>a;a++)i[a]=i[a].replace(/\+/g," "),n=i[a].split("="),s.push([decodeURIComponent(n[0]),decodeURIComponent(n[1])]);return s}function o(a){for(var n=new FormData,i=0;i').val(m.extraData[d].value).appendTo(w)[0]:e('').val(m.extraData[d]).appendTo(w)[0]);m.iframeTarget||v.appendTo("body"),g.attachEvent?g.attachEvent("onload",s):g.addEventListener("load",s,!1),setTimeout(t,15);try{w.submit()}catch(h){var x=document.createElement("form").submit;x.apply(w)}}finally{w.setAttribute("action",i),w.setAttribute("enctype",c),r?w.setAttribute("target",r):f.removeAttr("target"),e(l).remove()}}function s(t){if(!x.aborted&&!F){if(M=n(g),M||(a("cannot access response document"),t=k),t===D&&x)return x.abort("timeout"),void S.reject(x,"timeout");if(t==k&&x)return x.abort("server abort"),void S.reject(x,"error","server abort");if(M&&M.location.href!=m.iframeSrc||T){g.detachEvent?g.detachEvent("onload",s):g.removeEventListener("load",s,!1);var r,i="success";try{if(T)throw"timeout";var o="xml"==m.dataType||M.XMLDocument||e.isXMLDoc(M);if(a("isXml="+o),!o&&window.opera&&(null===M.body||!M.body.innerHTML)&&--O)return a("requeing onLoad callback, DOM not available"),void setTimeout(s,250);var u=M.body?M.body:M.documentElement;x.responseText=u?u.innerHTML:null,x.responseXML=M.XMLDocument?M.XMLDocument:M,o&&(m.dataType="xml"),x.getResponseHeader=function(e){var t={"content-type":m.dataType};return t[e.toLowerCase()]},u&&(x.status=Number(u.getAttribute("status"))||x.status,x.statusText=u.getAttribute("statusText")||x.statusText);var c=(m.dataType||"").toLowerCase(),l=/(json|script|text)/.test(c);if(l||m.textarea){var f=M.getElementsByTagName("textarea")[0];if(f)x.responseText=f.value,x.status=Number(f.getAttribute("status"))||x.status,x.statusText=f.getAttribute("statusText")||x.statusText;else if(l){var p=M.getElementsByTagName("pre")[0],h=M.getElementsByTagName("body")[0];p?x.responseText=p.textContent?p.textContent:p.innerText:h&&(x.responseText=h.textContent?h.textContent:h.innerText)}}else"xml"==c&&!x.responseXML&&x.responseText&&(x.responseXML=X(x.responseText));try{E=_(x,c,m)}catch(y){i="parsererror",x.error=r=y||i}}catch(y){a("error caught: ",y),i="error",x.error=r=y||i}x.aborted&&(a("upload aborted"),i=null),x.status&&(i=x.status>=200&&x.status<300||304===x.status?"success":"error"),"success"===i?(m.success&&m.success.call(m.context,E,"success",x),S.resolve(x.responseText,"success",x),d&&e.event.trigger("ajaxSuccess",[x,m])):i&&(void 0===r&&(r=x.statusText),m.error&&m.error.call(m.context,x,i,r),S.reject(x,"error",r),d&&e.event.trigger("ajaxError",[x,m,r])),d&&e.event.trigger("ajaxComplete",[x,m]),d&&!--e.active&&e.event.trigger("ajaxStop"),m.complete&&m.complete.call(m.context,x,i),F=!0,m.timeout&&clearTimeout(j),setTimeout(function(){m.iframeTarget?v.attr("src",m.iframeSrc):v.remove(),x.responseXML=null},100)}}}var c,l,m,d,p,v,g,x,y,b,T,j,w=f[0],S=e.Deferred();if(S.abort=function(e){x.abort(e)},r)for(l=0;l'),v.css({position:"absolute",top:"-1000px",left:"-1000px"})),g=v[0],x={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(t){var r="timeout"===t?"timeout":"aborted";a("aborting upload... "+r),this.aborted=1;try{g.contentWindow.document.execCommand&&g.contentWindow.document.execCommand ("Stop")}catch(n){}v.attr("src",m.iframeSrc),x.error=r,m.error&&m.error.call(m.context,x,r,t),d&&e.event.trigger("ajaxError",[x,m,r]),m.complete&&m.complete.call(m.context,x,r)}},d=m.global,d&&0===e.active++&&e.event.trigger("ajaxStart"),d&&e.event.trigger("ajaxSend",[x,m]),m.beforeSend&&m.beforeSend.call(m.context,x,m)===!1)return m.global&&e.active--,S.reject(),S;if(x.aborted)return S.reject(),S;y=w.clk,y&&(b=y.name,b&&!y.disabled&&(m.extraData=m.extraData||{},m.extraData[b]=y.value,"image"==y.type&&(m.extraData[b+".x"]=w.clk_x,m.extraData[b+".y"]=w.clk_y)));var D=1,k=2,A=e("meta[name=csrf-token]").attr("content"),L=e("meta[name=csrf-param]").attr("content");L&&A&&(m.extraData=m.extraData||{},m.extraData[L]=A),m.forceSync?o():setTimeout(o,10);var E,M,F,O=50,X=e.parseXML||function(e,t){return window.ActiveXObject?(t=new ActiveXObject("Microsoft.XMLDOM"),t.async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&&t.documentElement&&"parsererror"!=t.documentElement.nodeName?t:null},C=e.parseJSON||function(e){return window.eval("("+e+")")},_=function(t,r,a){var n=t.getResponseHeader("content-type")||"",i="xml"===r||!r&&n.indexOf("xml")>=0,o=i?t.responseXML:t.responseText;return i&&"parsererror"===o.documentElement.nodeName&&e.error&&e.error("parsererror"),a&&a.dataFilter&&(o=a.dataFilter(o,r)),"string"==typeof o&&("json"===r||!r&&n.indexOf("json")>=0?o=C(o):("script"===r||!r&&n.indexOf("javascript")>=0)&&e.globalEval(o)),o};return S}if(!this.length)return a("ajaxSubmit: skipping submit process - no element selected"),this;var u,c,l,f=this;"function"==typeof t?t={success:t}:void 0===t&&(t={}),u=t.type||this.attr2("method"),c=t.url||this.attr2("action"),l="string"==typeof c?e.trim(c):"",l=l||window.location.href||"",l&&(l=(l.match(/^([^#]+)/)||[])[1]),t=e.extend(!0,{url:l,success:e.ajaxSettings.success,type:u||e.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},t);var m={};if(this.trigger("form-pre-serialize",[this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-pre-serialize trigger"),this;if(t.beforeSerialize&&t.beforeSerialize(this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSerialize callback"),this;var d=t.traditional;void 0===d&&(d=e.ajaxSettings.traditional);var p,h=[],v=this.formToArray(t.semantic,h);if(t.data&&(t.extraData=t.data,p=e.param(t.data,d)),t.beforeSubmit&&t.beforeSubmit(v,this,t)===!1)return a("ajaxSubmit: submit aborted via beforeSubmit callback"),this;if(this.trigger("form-submit-validate",[v,this,t,m]),m.veto)return a("ajaxSubmit: submit vetoed via form-submit-validate trigger"),this;var g=e.param(v,d);p&&(g=g?g+"&"+p:p),"GET"==t.type.toUpperCase()?(t.url+=(t.url.indexOf("?")>=0?"&":"?")+g,t.data=null):t.data=g;var x=[];if(t.resetForm&&x.push(function(){f.resetForm()}),t.clearForm&&x.push(function(){f.clearForm(t.includeHidden)}),!t.dataType&&t.target){var y=t.success||function(){};x.push(function(r){var a=t.replaceTarget?"replaceWith":"html";e(t.target)[a](r).each(y,arguments)})}else t.success&&x.push(t.success);if(t.success=function(e,r,a){for(var n=t.context||this,i=0,o=x.length;o>i;i++)x[i].apply(n,[e,r,a||f,f])},t.error){var b=t.error;t.error=function(e,r,a){var n=t.context||this;b.apply(n,[e,r,a,f])}}if(t.complete){var T=t.complete;t.complete=function(e,r){var a=t.context||this;T.apply(a,[e,r,f])}}var j=e("input[type=file]:enabled",this).filter(function(){return""!==e(this).val()}),w=j.length>0,S="multipart/form-data",D=f.attr("enctype")==S||f.attr("encoding")==S,k=n.fileapi&&n.formdata;a("fileAPI :"+k);var A,L=(w||D)&&!k;t.iframe!==!1&&(t.iframe||L)?t.closeKeepAlive?e.get(t.closeKeepAlive,function(){A=s(v)}):A=s(v):A=(w||D)&&k?o(v):e.ajax(t),f.removeData("jqxhr").data("jqxhr",A);for(var E=0;Ec;c++)if(d=u[c],f=d.name,f&&!d.disabled)if(t&&o.clk&&"image"==d.type)o.clk==d&&(a.push({name:f,value:e(d).val(),type:d.type}),a.push({name:f+".x",value:o.clk_x},{name:f+".y",value:o.clk_y}));else if(m=e.fieldValue(d,!0),m&&m.constructor==Array)for(r&&r.push(d),l=0,h=m.length;h>l;l++)a.push({name:f,value:m[l]});else if(n.fileapi&&"file"==d.type){r&&r.push(d);var v=d.files;if(v.length)for(l=0;li;i++)r.push({name:a,value:n[i]});else null!==n&&"undefined"!=typeof n&&r.push({name:this.name,value:n})}}),e.param(r)},e.fn.fieldValue=function(t){for(var r=[],a=0,n=this.length;n>a;a++){var i=this[a],o=e.fieldValue(i,t);null===o||"undefined"==typeof o||o.constructor==Array&&!o.length||(o.constructor==Array?e.merge(r,o):r.push(o))}return r},e.fieldValue=function(t,r){var a=t.name,n=t.type,i=t.tagName.toLowerCase();if(void 0===r&&(r=!0),r&&(!a||t.disabled||"reset"==n||"button"==n||("checkbox"==n||"radio"==n)&&!t.checked||("submit"==n||"image"==n)&&t.form&&t.form.clk!=t||"select"==i&&-1==t.selectedIndex))return null;if("select"==i){var o=t.selectedIndex;if(0>o)return null;for(var s=[],u=t.options,c="select-one"==n,l=c?o+1:u.length,f=c?o:0;l>f;f++){var m=u[f];if(m.selected){var d=m.value;if(d||(d=m.attributes&&m.attributes.value&&!m.attributes.value.specified?m.text:m.value),c)return d;s.push(d)}}return s}return e(t).val()},e.fn.clearForm=function(t){return this.each(function(){e("input,select,textarea",this).clearFields(t)})},e.fn.clearFields=e.fn.clearInputs=function(t){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var a=this.type,n=this.tagName.toLowerCase();r.test(a)||"textarea"==n?this.value="":"checkbox"==a||"radio"==a?this.checked=!1:"select"==n?this.selectedIndex=-1:"file"==a?/MSIE/.test(navigator.userAgent)?e(this).replaceWith(e(this).clone(!0)):e(this).val(""):t&&(t===!0&&/hidden/.test(a)||"string"==typeof t&&e(this).is(t))&&(this.value="")})},e.fn.resetForm=function(){return this.each(function(){("function"==typeof this.reset||"object"==typeof this.reset&&!this.reset.nodeType)&&this.reset()})},e.fn.enable=function(e){return void 0===e&&(e=!0),this.each(function(){this.disabled=!e})},e.fn.selected=function(t){return void 0===t&&(t=!0),this.each(function(){var r=this.type;if("checkbox"==r||"radio"==r)this.checked=t;else if("option"==this.tagName.toLowerCase()){var a=e(this).parent("select");t&&a[0]&&"select-one"==a[0].type&&a.find("option").selected(!1),this.selected=t}})},e.fn.ajaxSubmit.debug=!1}); (function($){ 'use strict'; if(typeof _wpcf7==='undefined'||_wpcf7===null){ return; } _wpcf7=$.extend({ cached: 0, inputs: [] }, _wpcf7); $.fn.wpcf7InitForm=function(){ this.ajaxForm({ beforeSubmit: function(arr, $form, options){ $form.wpcf7ClearResponseOutput(); $form.find('[aria-invalid]').attr('aria-invalid', 'false'); $form.find('.ajax-loader').addClass('is-active'); return true; }, beforeSerialize: function($form, options){ $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val(''); }); return true; }, data: { '_wpcf7_is_ajax_call': 1 }, dataType: 'json', success: $.wpcf7AjaxSuccess, error: function(xhr, status, error, $form){ var e=$('
    ').text(error.message); $form.after(e); }}); if(_wpcf7.cached){ this.wpcf7OnloadRefill(); } this.wpcf7ToggleSubmit(); this.find('.wpcf7-submit').wpcf7AjaxLoader(); this.find('.wpcf7-acceptance').click(function(){ $(this).closest('form').wpcf7ToggleSubmit(); }); this.find('.wpcf7-exclusive-checkbox').wpcf7ExclusiveCheckbox(); this.find('.wpcf7-list-item.has-free-text').wpcf7ToggleCheckboxFreetext(); this.find('[placeholder]').wpcf7Placeholder(); if(_wpcf7.jqueryUi&&! _wpcf7.supportHtml5.date){ this.find('input.wpcf7-date[type="date"]').each(function(){ $(this).datepicker({ dateFormat: 'yy-mm-dd', minDate: new Date($(this).attr('min')), maxDate: new Date($(this).attr('max')) }); }); } if(_wpcf7.jqueryUi&&! _wpcf7.supportHtml5.number){ this.find('input.wpcf7-number[type="number"]').each(function(){ $(this).spinner({ min: $(this).attr('min'), max: $(this).attr('max'), step: $(this).attr('step') }); }); } this.find('.wpcf7-character-count').wpcf7CharacterCount(); this.find('.wpcf7-validates-as-url').change(function(){ $(this).wpcf7NormalizeUrl(); }); this.find('.wpcf7-recaptcha').wpcf7Recaptcha(); }; $.wpcf7AjaxSuccess=function(data, status, xhr, $form){ if(! $.isPlainObject(data)||$.isEmptyObject(data)){ return; } _wpcf7.inputs=$form.serializeArray(); var $responseOutput=$form.find('div.wpcf7-response-output'); $form.wpcf7ClearResponseOutput(); $form.find('.wpcf7-form-control').removeClass('wpcf7-not-valid'); $form.removeClass('invalid spam sent failed'); if(data.captcha){ $form.wpcf7RefillCaptcha(data.captcha); } if(data.quiz){ $form.wpcf7RefillQuiz(data.quiz); } if(data.invalids){ $.each(data.invalids, function(i, n){ $form.find(n.into).wpcf7NotValidTip(n.message); $form.find(n.into).find('.wpcf7-form-control').addClass('wpcf7-not-valid'); $form.find(n.into).find('[aria-invalid]').attr('aria-invalid', 'true'); }); $responseOutput.addClass('wpcf7-validation-errors'); $form.addClass('invalid'); $(data.into).wpcf7TriggerEvent('invalid'); }else if(1==data.spam){ $form.find('[name="g-recaptcha-response"]').each(function(){ if(''==$(this).val()){ var $recaptcha=$(this).closest('.wpcf7-form-control-wrap'); $recaptcha.wpcf7NotValidTip(_wpcf7.recaptcha.messages.empty); }}); $responseOutput.addClass('wpcf7-spam-blocked'); $form.addClass('spam'); $(data.into).wpcf7TriggerEvent('spam'); }else if(1==data.mailSent){ $responseOutput.addClass('wpcf7-mail-sent-ok'); $form.addClass('sent'); if(data.onSentOk){ $.each(data.onSentOk, function(i, n){ eval(n) }); } $(data.into).wpcf7TriggerEvent('mailsent'); }else{ $responseOutput.addClass('wpcf7-mail-sent-ng'); $form.addClass('failed'); $(data.into).wpcf7TriggerEvent('mailfailed'); } if(data.onSubmit){ $.each(data.onSubmit, function(i, n){ eval(n) }); } $(data.into).wpcf7TriggerEvent('submit'); if(1==data.mailSent){ $form.resetForm(); } $form.find('[placeholder].placeheld').each(function(i, n){ $(n).val($(n).attr('placeholder')); }); $responseOutput.append(data.message).slideDown('fast'); $responseOutput.attr('role', 'alert'); $.wpcf7UpdateScreenReaderResponse($form, data); }; $.fn.wpcf7TriggerEvent=function(name){ return this.each(function(){ var elmId=this.id; var inputs=_wpcf7.inputs; var event=new CustomEvent('wpcf7' + name, { bubbles: true, detail: { id: elmId, inputs: inputs }}); this.dispatchEvent(event); $(this).trigger('wpcf7:' + name); $(this).trigger(name + '.wpcf7'); }); }; $.fn.wpcf7ExclusiveCheckbox=function(){ return this.find('input:checkbox').click(function(){ var name=$(this).attr('name'); $(this).closest('form').find('input:checkbox[name="' + name + '"]').not(this).prop('checked', false); }); }; $.fn.wpcf7Placeholder=function(){ if(_wpcf7.supportHtml5.placeholder){ return this; } return this.each(function(){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); $(this).focus(function(){ if($(this).hasClass('placeheld')){ $(this).val('').removeClass('placeheld'); }}); $(this).blur(function(){ if(''===$(this).val()){ $(this).val($(this).attr('placeholder')); $(this).addClass('placeheld'); }}); }); }; $.fn.wpcf7AjaxLoader=function(){ return this.each(function(){ $(this).after(''); }); }; $.fn.wpcf7ToggleSubmit=function(){ return this.each(function(){ var form=$(this); if(this.tagName.toLowerCase()!='form'){ form=$(this).find('form').first(); } if(form.hasClass('wpcf7-acceptance-as-validation')){ return; } var submit=form.find('input:submit'); if(! submit.length){ return; } var acceptances=form.find('input:checkbox.wpcf7-acceptance'); if(! acceptances.length){ return; } submit.removeAttr('disabled'); acceptances.each(function(i, n){ n=$(n); if(n.hasClass('wpcf7-invert')&&n.is(':checked') || ! n.hasClass('wpcf7-invert')&&! n.is(':checked')){ submit.attr('disabled', 'disabled'); }}); }); }; $.fn.wpcf7ToggleCheckboxFreetext=function(){ return this.each(function(){ var $wrap=$(this).closest('.wpcf7-form-control'); if($(this).find(':checkbox, :radio').is(':checked')){ $(this).find(':input.wpcf7-free-text').prop('disabled', false); }else{ $(this).find(':input.wpcf7-free-text').prop('disabled', true); } $wrap.find(':checkbox, :radio').change(function(){ var $cb=$('.has-free-text', $wrap).find(':checkbox, :radio'); var $freetext=$(':input.wpcf7-free-text', $wrap); if($cb.is(':checked')){ $freetext.prop('disabled', false).focus(); }else{ $freetext.prop('disabled', true); }}); }); }; $.fn.wpcf7CharacterCount=function(){ return this.each(function(){ var $count=$(this); var name=$count.attr('data-target-name'); var down=$count.hasClass('down'); var starting=parseInt($count.attr('data-starting-value'), 10); var maximum=parseInt($count.attr('data-maximum-value'), 10); var minimum=parseInt($count.attr('data-minimum-value'), 10); var updateCount=function($target){ var length=$target.val().length; var count=down ? starting - length:length; $count.attr('data-current-value', count); $count.text(count); if(maximum&&maximum < length){ $count.addClass('too-long'); }else{ $count.removeClass('too-long'); } if(minimum&&length < minimum){ $count.addClass('too-short'); }else{ $count.removeClass('too-short'); }}; $count.closest('form').find(':input[name="' + name + '"]').each(function(){ updateCount($(this)); $(this).keyup(function(){ updateCount($(this)); }); }); }); }; $.fn.wpcf7NormalizeUrl=function(){ return this.each(function(){ var val=$.trim($(this).val()); if(val&&! val.match(/^[a-z][a-z0-9.+-]*:/i)){ val=val.replace(/^\/+/, ''); val='http://' + val; } $(this).val(val); }); }; $.fn.wpcf7NotValidTip=function(message){ return this.each(function(){ var $into=$(this); $into.find('span.wpcf7-not-valid-tip').remove(); $into.append('' + message + ''); if($into.is('.use-floating-validation-tip *')){ $('.wpcf7-not-valid-tip', $into).mouseover(function(){ $(this).wpcf7FadeOut(); }); $(':input', $into).focus(function(){ $('.wpcf7-not-valid-tip', $into).not(':hidden').wpcf7FadeOut(); }); }}); }; $.fn.wpcf7FadeOut=function(){ return this.each(function(){ $(this).animate({ opacity: 0 }, 'fast', function(){ $(this).css({ 'z-index': -100 }); }); }); }; $.fn.wpcf7OnloadRefill=function(){ return this.each(function(){ var url=$(this).attr('action'); if(0 < url.indexOf('#')){ url=url.substr(0, url.indexOf('#')); } var id=$(this).find('input[name="_wpcf7"]').val(); var unitTag=$(this).find('input[name="_wpcf7_unit_tag"]').val(); $.getJSON(url, { _wpcf7_is_ajax_call: 1, _wpcf7: id, _wpcf7_request_ver: $.now() }, function(data){ if(data&&data.captcha){ $('#' + unitTag).wpcf7RefillCaptcha(data.captcha); } if(data&&data.quiz){ $('#' + unitTag).wpcf7RefillQuiz(data.quiz); }} ); }); }; $.fn.wpcf7RefillCaptcha=function(captcha){ return this.each(function(){ var form=$(this); $.each(captcha, function(i, n){ form.find(':input[name="' + i + '"]').clearFields(); form.find('img.wpcf7-captcha-' + i).attr('src', n); var match=/([0-9]+)\.(png|gif|jpeg)$/.exec(n); form.find('input:hidden[name="_wpcf7_captcha_challenge_' + i + '"]').attr('value', match[ 1 ]); }); }); }; $.fn.wpcf7RefillQuiz=function(quiz){ return this.each(function(){ var form=$(this); $.each(quiz, function(i, n){ form.find(':input[name="' + i + '"]').clearFields(); form.find(':input[name="' + i + '"]').siblings('span.wpcf7-quiz-label').text(n[ 0 ]); form.find('input:hidden[name="_wpcf7_quiz_answer_' + i + '"]').attr('value', n[ 1 ]); }); }); }; $.fn.wpcf7ClearResponseOutput=function(){ return this.each(function(){ $(this).find('div.wpcf7-response-output').hide().empty().removeClass('wpcf7-mail-sent-ok wpcf7-mail-sent-ng wpcf7-validation-errors wpcf7-spam-blocked').removeAttr('role'); $(this).find('span.wpcf7-not-valid-tip').remove(); $(this).find('.ajax-loader').removeClass('is-active'); }); }; $.fn.wpcf7Recaptcha=function(){ return this.each(function(){ var events='wpcf7:spam wpcf7:mailsent wpcf7:mailfailed'; $(this).closest('div.wpcf7').on(events, function(e){ if(recaptchaWidgets&&grecaptcha){ $.each(recaptchaWidgets, function(index, value){ grecaptcha.reset(value); }); }}); }); }; $.wpcf7UpdateScreenReaderResponse=function($form, data){ $('.wpcf7 .screen-reader-response').html('').attr('role', ''); if(data.message){ var $response=$form.siblings('.screen-reader-response').first(); $response.append(data.message); if(data.invalids){ var $invalids=$('
      '); $.each(data.invalids, function(i, n){ if(n.idref){ var $li=$('
    • ').append($('').attr('href', '#' + n.idref).append(n.message)); }else{ var $li=$('
    • ').append(n.message); } $invalids.append($li); }); $response.append($invalids); } $response.attr('role', 'alert').focus(); }}; $.wpcf7SupportHtml5=function(){ var features={}; var input=document.createElement('input'); features.placeholder='placeholder' in input; var inputTypes=[ 'email', 'url', 'tel', 'number', 'range', 'date' ]; $.each(inputTypes, function(index, value){ input.setAttribute('type', value); features[ value ]=input.type!=='text'; }); return features; }; $(function(){ _wpcf7.supportHtml5=$.wpcf7SupportHtml5(); $('div.wpcf7 > form').wpcf7InitForm(); }); })(jQuery); (function (){ if(typeof window.CustomEvent==="function") return false; function CustomEvent(event, params){ params=params||{ bubbles: false, cancelable: false, detail: undefined }; var evt=document.createEvent('CustomEvent'); evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail); return evt; } CustomEvent.prototype=window.Event.prototype; window.CustomEvent=CustomEvent; })(); !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(I){return function(){I.ui=I.ui||{};var o,H,x=Math.max,T=Math.abs,L=Math.round,n=/left|center|right/,l=/top|center|bottom/,f=/[\+\-]\d+(\.[\d]+)?%?/,s=/^\w+/,h=/%$/,e=I.fn.position;function P(t,i,e){return[parseFloat(t[0])*(h.test(t[0])?i/100:1),parseFloat(t[1])*(h.test(t[1])?e/100:1)]}function D(t,i){return parseInt(I.css(t,i),10)||0}I.position={scrollbarWidth:function(){if(void 0!==o)return o;var t,i=I("
      "),e=i.children()[0];return I("body").append(i),t=e.offsetWidth,i.css("overflow","scroll"),t===(e=e.offsetWidth)&&(e=i[0].clientWidth),i.remove(),o=t-e},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),e=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),i="scroll"===i||"auto"===i&&t.widthx(T(o),T(n))?l.important="horizontal":l.important="vertical",c.using.call(this,t,l)}),f.offset(I.extend(r,{using:t}))})},I.ui.position={fit:{left:function(t,i){var e=i.within,o=e.isWindow?e.scrollLeft:e.offset.left,n=e.width,l=t.left-i.collisionPosition.marginLeft,f=o-l,s=l+i.collisionWidth-n-o;i.collisionWidth>n?0n?0",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=a(e.target);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand (e):!this.element.is(":focus")&&a(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){var t;this.previousFilter||((t=a(e.currentTarget)).siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,t))},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){a.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=a(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var t,i,s,n=!0;switch(e.keyCode){case a.ui.keyCode.PAGE_UP:this.previousPage(e);break;case a.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case a.ui.keyCode.HOME:this._move("first","first",e);break;case a.ui.keyCode.END:this._move("last","last",e);break;case a.ui.keyCode.UP:this.previous(e);break;case a.ui.keyCode.DOWN:this.next(e);break;case a.ui.keyCode.LEFT:this.collapse(e);break;case a.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand (e);break;case a.ui.keyCode.ENTER:case a.ui.keyCode.SPACE:this._activate(e);break;case a.ui.keyCode.ESCAPE:this.collapse(e);break;default:n=!1,t=this.previousFilter||"",i=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),i===t?s=!0:i=t+i,t=this._filterMenuItems(i),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(i=String.fromCharCode(e.keyCode),t=this._filterMenuItems(i)),t.length?(this.focus(e,t),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand (e):this.select(e))},refresh:function(){var t=this,s=this.options.icons.submenu,e=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),e.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=a(this),t=e.parent(),i=a("").addClass("ui-menu-icon ui-icon "+s).data("ui-menu-submenu-carat",!0);t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),(e=e.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=a(this);t._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!a.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),i=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,s;this._hasScroll()&&(i=parseFloat(a.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(a.css(this.activeMenu[0],"paddingTop"))||0,t=e.offset().top-this.activeMenu.offset().top-i-s,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),t<0?this.activeMenu.scrollTop(i+t):s",{id:"wp-a11y-speak-"+(e=e||"polite"),"aria-live":e,"aria-relevant":"additions text","aria-atomic":"true","class":"screen-reader-text wp-a11y-speak-region"});return a(document.body).append(e),e}a(document).ready(function(){i=a("#wp-a11y-speak-polite"),n=a("#wp-a11y-speak-assertive"),i.length||(i=t("polite")),n.length||(n=t("assertive"))}),e.a11y=e.a11y||{},e.a11y.speak=function(e,t){a(".wp-a11y-speak-region").text(""),e=a("

      ").html(e).text(),n&&"assertive"===t?n.text(e):i&&i.text(e)}}(window.wp,window.jQuery); !function(e){"function"==typeof define&&define.amd?define(["jquery","./core","./widget","./position","./menu"],e):e(jQuery)}(function(o){return o.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,s,n,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,e="input"===e;this.isMultiLine=t||!e&&this.element.prop("isContentEditable"),this.valueMethod=this.element[t||e?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:s=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||e.preventDefault());if(!s){var t=o.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){if(n)return n=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),this._change(e))}}),this._initSource(),this.menu=o("

        ").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];o(e.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(e){e.target===t.element[0]||e.target===i||o.contains(i,e.target)||t.close()})})},menufocus:function(e,t){var i;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",function(){o(e.target).trigger(e.originalEvent)});i=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:i})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(i.value),(i=t.item.attr("aria-label")||i.value)&&o.trim(i).length&&(this.liveRegion.children().hide(),o("
        ").text(i).appendTo(this.liveRegion))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=s,this._delay(function(){this.previous=s,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=o("",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e=!(e=!(e=e&&(e.jquery||e.nodeType?o(e):this.document.find(e).eq(0)))||!e[0]?this.element.closest(".ui-front"):e).length?this.document[0].body:e},_initSource:function(){var i,s,n=this;o.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(o.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(e,t){n.xhr&&n.xhr.abort(),n.xhr=o.ajax({url:s,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;e&&(!e||t||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length").text(t.label).appendTo(e)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())}}),o.extend(o.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=new RegExp(o.ui.autocomplete.escapeRegex(t),"i");return o.grep(e,function(e){return i.test(e.label||e.value||e)})}}),o.widget("ui.autocomplete",o.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1").text(t).appendTo(this.liveRegion))}}),o.ui.autocomplete}); !function(d,l){"use strict";var e=!1,n=!1;if(l.querySelector)if(d.addEventListener)e=!0;if(d.wp=d.wp||{},!d.wp.receiveEmbedMessage)if(d.wp.receiveEmbedMessage=function(e){var t=e.data;if(t.secret||t.message||t.value)if(!/[^a-zA-Z0-9]/.test(t.secret)){for(var r,a,i,s=l.querySelectorAll('iframe[data-secret="'+t.secret+'"]'),n=l.querySelectorAll('blockquote[data-secret="'+t.secret+'"]'),o=new RegExp("^https?:$","i"),c=0;cscreen_w?"desktop":768screen_w?"tablet":300screen_w?"mobile":300>screen_w?"mobile_portrait":""}function loadScript(url,$obj,callback){var script=document.createElement("script");script.type="text/javascript",script.readyState&&(script.onreadystatechange=function(){"loaded"!==script.readyState&&"complete"!==script.readyState||(script.onreadystatechange=null,callback())}),script.src=url,$obj.get(0).appendChild(script)}function vc_ttaActivation(){jQuery("[data-vc-accordion]").on("show.vc.accordion",function(e){var $=window.jQuery,ui={};ui.newPanel=$(this).data("vc.accordion").getTarget(),window.wpb_prepare_tab_content(e,ui)})}function vc_accordionActivate(event,ui){if(ui.newPanel.length&&ui.newHeader.length){var $pie_charts=ui.newPanel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=ui.newPanel.find(".vc_round-chart"),$line_charts=ui.newPanel.find(".vc_line-chart"),$carousel=ui.newPanel.find('[data-ride="vc_carousel"]');"undefined"!=typeof jQuery.fn.isotope&&ui.newPanel.find(".isotope, .wpb_image_grid_ul").isotope("layout"),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),vc_carouselBehaviour(ui.newPanel),vc_plugin_flexslider(ui.newPanel),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),ui.newPanel.parents(".isotope").length&&ui.newPanel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}}function initVideoBackgrounds(){return window.console&&window.console.warn&&window.console.warn("this function is deprecated use vc_initVideoBackgrounds"),vc_initVideoBackgrounds()}function vc_initVideoBackgrounds(){jQuery("[data-vc-video-bg]").each(function(){var youtubeUrl,youtubeId,$element=jQuery(this);$element.data("vcVideoBg")?(youtubeUrl=$element.data("vcVideoBg"),youtubeId=vcExtractYoutubeId(youtubeUrl),youtubeId&&($element.find(".vc_video-bg").remove(),insertYoutubeVideoAsBackground($element,youtubeId)),jQuery(window).on("grid:items:added",function(event,$grid){$element.has($grid).length&&vcResizeVideoBackground($element)})):$element.find(".vc_video-bg").remove()})}function insertYoutubeVideoAsBackground($element,youtubeId,counter){if("undefined"==typeof YT||"undefined"==typeof YT.Player)return counter="undefined"==typeof counter?0:counter,100
        ').find(".inner");new YT.Player($container[0],{width:"100%",height:"100%",videoId:youtubeId,playerVars:{playlist:youtubeId,iv_load_policy:3,enablejsapi:1,disablekb:1,autoplay:1,controls:0,showinfo:0,rel:0,loop:1,wmode:"transparent"},events:{onReady:function(event){event.target.mute().setLoop(!0)}}}),vcResizeVideoBackground($element),jQuery(window).bind("resize",function(){vcResizeVideoBackground($element)})}function vcResizeVideoBackground($element){var iframeW,iframeH,marginLeft,marginTop,containerW=$element.innerWidth(),containerH=$element.innerHeight(),ratio1=16,ratio2=9;containerW/containerHparseInt(ver[1]);$call.each(function(index){var $tabs,interval=jQuery(this).attr("data-interval"),tabs_array=[];if($tabs=jQuery(this).find(".wpb_tour_tabs_wrapper").tabs({show:function(event,ui){wpb_prepare_tab_content(event,ui)},beforeActivate:function(event,ui){1!==ui.newPanel.index()&&ui.newPanel.find(".vc_pie_chart:not(.vc_ready)")},activate:function(event,ui){wpb_prepare_tab_content(event,ui)}}),interval&&0index?index=$tabs.tabs("length")-1:index>=$tabs.tabs("length")&&(index=0),$tabs.tabs("select",index)}else{var index=$tabs.tabs("option","active"),length=$tabs.find(".wpb_tab").length;index=jQuery(this).parent().hasClass("wpb_next_slide")?index+1>=length?0:index+1:0>index-1?length-1:index-1,$tabs.tabs("option","active",index)}})})}}),"function"!=typeof window.vc_accordionBehaviour&&(window.vc_accordionBehaviour=function(){jQuery(".wpb_accordion").each(function(index){var $tabs,$this=jQuery(this),active_tab=($this.attr("data-interval"),!isNaN(jQuery(this).data("active-tab"))&&0 div > h3",autoHeight:!1,heightStyle:"content",active:active_tab,collapsible:collapsible,navigation:!0,activate:vc_accordionActivate,change:function(event,ui){"undefined"!=typeof jQuery.fn.isotope&&ui.newContent.find(".isotope").isotope("layout"),vc_carouselBehaviour(ui.newPanel)}}),!0===$this.data("vcDisableKeydown")&&($tabs.data("uiAccordion")._keydown=function(){})})}),"function"!=typeof window.vc_teaserGrid&&(window.vc_teaserGrid=function(){var layout_modes={fitrows:"fitRows",masonry:"masonry"};jQuery(".wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)").each(function(){var $container=jQuery(this),$thumbs=$container.find(".wpb_thumbnails"),layout_mode=$thumbs.attr("data-layout-mode");$thumbs.isotope({itemSelector:".isotope-item",layoutMode:"undefined"==typeof layout_modes[layout_mode]?"fitRows":layout_modes[layout_mode]}),$container.find(".categories_filter a").data("isotope",$thumbs).click(function(e){e.preventDefault();var $thumbs=jQuery(this).data("isotope");jQuery(this).parent().parent().find(".active").removeClass("active"),jQuery(this).parent().addClass("active"),$thumbs.isotope({filter:jQuery(this).attr("data-filter")})}),jQuery(window).bind("load resize",function(){$thumbs.isotope("layout")})})}),"function"!=typeof window.vc_carouselBehaviour&&(window.vc_carouselBehaviour=function($parent){var $carousel=$parent?$parent.find(".wpb_carousel"):jQuery(".wpb_carousel");$carousel.each(function(){var $this=jQuery(this);if(!0!==$this.data("carousel_enabled")&&$this.is(":visible")){$this.data("carousel_enabled",!0);var carousel_speed=(getColumnsCount(jQuery(this)),500);jQuery(this).hasClass("columns_count_1")&&(carousel_speed=900);var carousele_li=jQuery(this).find(".wpb_thumbnails-fluid li");carousele_li.css({"margin-right":carousele_li.css("margin-left"),"margin-left":0});var fluid_ul=jQuery(this).find("ul.wpb_thumbnails-fluid");fluid_ul.width(fluid_ul.width()+300),jQuery(window).resize(function(){var before_resize=screen_size;screen_size=getSizeName(),before_resize!=screen_size&&window.setTimeout("location.reload()",20)})}})}),"function"!=typeof window.vc_slidersBehaviour&&(window.vc_slidersBehaviour=function(){jQuery(".wpb_gallery_slides").each(function(index){var $imagesGrid,this_element=jQuery(this);if(this_element.hasClass("wpb_slider_nivo")){var sliderSpeed=800,sliderTimeout=1e3*this_element.attr("data-interval");0===sliderTimeout&&(sliderTimeout=9999999999),this_element.find(".nivoSlider").nivoSlider({effect:"boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse",slices:15,boxCols:8,boxRows:4,animSpeed:sliderSpeed,pauseTime:sliderTimeout,startSlide:0,directionNav:!0,directionNavHide:!0,controlNav:!0,keyboardNav:!1,pauseOnHover:!0,manualAdvance:!1,prevText:"Prev",nextText:"Next"})}else this_element.hasClass("wpb_image_grid")&&(jQuery.fn.imagesLoaded?$imagesGrid=this_element.find(".wpb_image_grid_ul").imagesLoaded(function(){$imagesGrid.isotope({itemSelector:".isotope-item",layoutMode:"fitRows"})}):this_element.find(".wpb_image_grid_ul").isotope({itemSelector:".isotope-item",layoutMode:"fitRows"}))})}),"function"!=typeof window.vc_prettyPhoto&&(window.vc_prettyPhoto=function(){try{jQuery&&jQuery.fn&&jQuery.fn.prettyPhoto&&jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({animationSpeed:"normal",hook:"data-rel",padding:15,opacity:.7,showTitle:!0,allowresize:!0,counter_separator_label:"/",hideflash:!1,deeplinking:!1,modal:!1,callback:function(){var url=location.href;url.indexOf("#!prettyPhoto")>-1&&(location.hash="")},social_tools:""})}catch(err){window.console&&window.console.log&&console.log(err)}}),"function"!=typeof window.vc_google_fonts&&(window.vc_google_fonts=function(){return!1}),window.vcParallaxSkroll=!1,"function"!=typeof window.vc_rowBehaviour&&(window.vc_rowBehaviour=function(){function fullWidthRow(){var $elements=$('[data-vc-full-width="true"]');$.each($elements,function(key,item){var $el=$(this);$el.addClass("vc_hidden");var $el_full=$el.next(".vc_row-full-width");if($el_full.length||($el_full=$el.parent().next(".vc_row-full-width")),$el_full.length){var el_margin_left=parseInt($el.css("margin-left"),10),el_margin_right=parseInt($el.css("margin-right"),10),offset=0-$el_full.offset().left-el_margin_left,width=$(window).width();if($el.css({position:"relative",left:offset,"box-sizing":"border-box",width:$(window).width()}),!$el.data("vcStretchContent")){var padding=-1*offset;0>padding&&(padding=0);var paddingRight=width-padding-$el_full.width()+el_margin_left+el_margin_right;0>paddingRight&&(paddingRight=0),$el.css({"padding-left":padding+"px","padding-right":paddingRight+"px"})}$el.attr("data-vc-full-width-init","true"),$el.removeClass("vc_hidden"),$(document).trigger("vc-full-width-row-single",{el:$el,offset:offset,marginLeft:el_margin_left,marginRight:el_margin_right,elFull:$el_full,width:width})}}),$(document).trigger("vc-full-width-row",$elements)}function parallaxRow(){var vcSkrollrOptions,callSkrollInit=!1;return window.vcParallaxSkroll&&window.vcParallaxSkroll.destroy(),$(".vc_parallax-inner").remove(),$("[data-5p-top-bottom]").removeAttr("data-5p-top-bottom data-30p-top-bottom"),$("[data-vc-parallax]").each(function(){var skrollrSpeed,skrollrSize,skrollrStart,skrollrEnd,$parallaxElement,parallaxImage,youtubeId;callSkrollInit=!0,"on"===$(this).data("vcParallaxOFade")&&$(this).children().attr("data-5p-top-bottom","opacity:0;").attr("data-30p-top-bottom","opacity:1;"),skrollrSize=100*$(this).data("vcParallax"),$parallaxElement=$("
        ").addClass("vc_parallax-inner").appendTo($(this)),$parallaxElement.height(skrollrSize+"%"),parallaxImage=$(this).data("vcParallaxImage"),youtubeId=vcExtractYoutubeId(parallaxImage),youtubeId?insertYoutubeVideoAsBackground($parallaxElement,youtubeId):"undefined"!=typeof parallaxImage&&$parallaxElement.css("background-image","url("+parallaxImage+")"),skrollrSpeed=skrollrSize-100,skrollrStart=-skrollrSpeed,skrollrEnd=0,$parallaxElement.attr("data-bottom-top","top: "+skrollrStart+"%;").attr("data-top-bottom","top: "+skrollrEnd+"%;")}),!(!callSkrollInit||!window.skrollr)&&(vcSkrollrOptions={forceHeight:!1,smoothScrolling:!1,mobileCheck:function(){return!1}},window.vcParallaxSkroll=skrollr.init(vcSkrollrOptions),window.vcParallaxSkroll)}function fullHeightRow(){var $element=$(".vc_row-o-full-height:first");if($element.length){var $window,windowHeight,offsetTop,fullHeight;$window=$(window),windowHeight=$window.height(),offsetTop=$element.offset().top,offsetTop0||navigator.userAgent.match(/Trident.*rv\:11\./))&&$(".vc_row-o-full-height").each(function(){"flex"===$(this).css("display")&&$(this).wrap('
        ')})}var $=window.jQuery;$(window).off("resize.vcRowBehaviour").on("resize.vcRowBehaviour",fullWidthRow).on("resize.vcRowBehaviour",fullHeightRow),fullWidthRow(),fullHeightRow(),fixIeFlexbox(),vc_initVideoBackgrounds(),parallaxRow()}),"function"!=typeof window.vc_gridBehaviour&&(window.vc_gridBehaviour=function(){jQuery.fn.vcGrid&&jQuery("[data-vc-grid]").vcGrid()}),"function"!=typeof window.getColumnsCount&&(window.getColumnsCount=function(el){for(var find=!1,i=1;!1===find;){if(el.hasClass("columns_count_"+i))return find=!0,i;i++}});var screen_size=getSizeName();"function"!=typeof window.wpb_prepare_tab_content&&(window.wpb_prepare_tab_content=function(event,ui){var $ui_panel,$google_maps,panel=ui.panel||ui.newPanel,$pie_charts=panel.find(".vc_pie_chart:not(.vc_ready)"),$round_charts=panel.find(".vc_round-chart"),$line_charts=panel.find(".vc_line-chart"),$carousel=panel.find('[data-ride="vc_carousel"]');if(vc_carouselBehaviour(),vc_plugin_flexslider(panel),ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&ui.newPanel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),panel.find(".vc_masonry_media_grid, .vc_masonry_grid").length&&panel.find(".vc_masonry_media_grid, .vc_masonry_grid").each(function(){var grid=jQuery(this).data("vcGrid");grid&&grid.gridBuilder&&grid.gridBuilder.setMasonry&&grid.gridBuilder.setMasonry()}),$pie_charts.length&&jQuery.fn.vcChat&&$pie_charts.vcChat(),$round_charts.length&&jQuery.fn.vcRoundChart&&$round_charts.vcRoundChart({reload:!1}),$line_charts.length&&jQuery.fn.vcLineChart&&$line_charts.vcLineChart({reload:!1}),$carousel.length&&jQuery.fn.carousel&&$carousel.carousel("resizeAction"),$ui_panel=panel.find(".isotope, .wpb_image_grid_ul"),$google_maps=panel.find(".wpb_gmaps_widget"),0<$ui_panel.length&&$ui_panel.isotope("layout"),$google_maps.length&&!$google_maps.is(".map_ready")){var $frame=$google_maps.find("iframe");$frame.attr("src",$frame.attr("src")),$google_maps.addClass("map_ready")}panel.parents(".isotope").length&&panel.parents(".isotope").each(function(){jQuery(this).isotope("layout")})}),"function"!=typeof window.vc_googleMapsPointer,jQuery(document).ready(function($){window.vc_js()});